Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@martin-brennan
Copy link
Contributor

Currently in core re-flagging something that is already flagged as spam
is not supported, long term we may want to support this but in the meantime
we should not be silencing/hiding if the PostActionCreator fails
when flagging things as spam.

Currently in core re-flagging something that is already flagged as spam
is not supported, long term we may want to support this but in the meantime
we should not be silencing/hiding if the PostActionCreator fails
when flagging things as spam.
Copy link
Contributor

@Drenmi Drenmi left a comment

Choose a reason for hiding this comment

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

LGTM! Some small nits. Can't answer the question you asked from Sam. 🚀

@SamSaffron
Copy link
Member

approving, this is already better than what we have, but an audit trail that we tried to flag and had no luck would be nice for future debugging.

@martin-brennan martin-brennan force-pushed the fix/check-pa-result-spam branch from 09e5fc4 to 39dcfab Compare February 11, 2025 01:43
@SamSaffron
Copy link
Member

nice I like this approach.. do we want error as text or JSON ? It probably does not matter that much but JSON does have some advantages given it is structured but the downside is that you can not easily limit length.

@martin-brennan martin-brennan force-pushed the fix/check-pa-result-spam branch from 54e0fe5 to f3b9362 Compare February 11, 2025 02:49
@martin-brennan
Copy link
Contributor Author

@SamSaffron I think the text is fine. Core only gives an error message, and not a super useful one at that since it's user readable for example "Oops! You already performed this action. Can you try refreshing the page?". I think it will be enough of a clue for debugging, maybe in future PostActionCreator could give a failed reason enum or something

@SamSaffron
Copy link
Member

no worries, I am good to have this merged 🤗

@martin-brennan martin-brennan merged commit 7b1bdbd into main Feb 11, 2025
6 checks passed
@martin-brennan martin-brennan deleted the fix/check-pa-result-spam branch February 11, 2025 03:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants