Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(slack): fix disappearing tags for issue button actions attempt 2 #75890

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

cathteng
Copy link
Member

@cathteng cathteng commented Aug 8, 2024

See #75789

Adds a fix to the above PR to account for someone clicking on an old message that doesn't have tags in the View metadata.

@cathteng cathteng requested a review from a team as a code owner August 8, 2024 22:40
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 8, 2024
@@ -530,6 +532,10 @@ def _handle_group_actions(
except client.ApiError as error:
return self.api_error(slack_request, group, identity_user, error, "status_dialog")

view = View(**slack_request.data["view"])
private_metadata = orjson.loads(view.private_metadata)
original_tags_from_request = set(private_metadata.get("tags", {}))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the only difference

@cathteng cathteng merged commit ee63085 into master Aug 9, 2024
50 checks passed
@cathteng cathteng deleted the cathy/slack/fix-disappearing-tags-issue-action branch August 9, 2024 17:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants