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

feat: multi squad post approval #4111

Merged
merged 25 commits into from
Feb 6, 2025
Merged

feat: multi squad post approval #4111

merged 25 commits into from
Feb 6, 2025

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Jan 27, 2025

Changes

Depends on this PR.

Not testable on preview before backend PR is merged

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Preview domain

https://mi-635.preview.app.daily.dev

Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Feb 6, 2025 0:50am
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Feb 6, 2025 0:50am

@@ -662,14 +662,12 @@ export const SQUAD_MODERATE_POST_MUTATION = gql`
mutation ModerateSourcePost(
$postIds: [ID]!
$status: String
$sourceId: ID!
Copy link
Member

Choose a reason for hiding this comment

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

We have to be careful with deployment. If we are updating the existing mutation, we must merge this PR at the same time the API is deployed. Otherwise, requests might fail.

Copy link
Member

@sshanzel sshanzel left a comment

Choose a reason for hiding this comment

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

Code-wise, looks amazing. Not much to add 💪

Copy link
Contributor

@rebelchris rebelchris left a comment

Choose a reason for hiding this comment

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

Code wise looks good to me.
Maybe once API is deployed we can do a e2e test on this branch before merging?

@capJavert
Copy link
Contributor

capJavert commented Feb 5, 2025

@rebelchris It won't be possible to test since its not backward compatible dailydotdev/daily-api#2617 (comment) but if we want to test we can make it backward compatible on API.

@rebelchris
Copy link
Contributor

@capJavert isnt out rule to have everything backward compatible on api.

I guess this all on webapp, but ideally so.
Im bit out of the loop why it is this way?

@capJavert
Copy link
Contributor

I did not want to slow it down, but up to Amar how he wants to test it, agree it would be easier to have it backward compatible. We don't have to create separate query, we can do if sourceId { old logic } else { new logic }.

@AmarTrebinjac
Copy link
Contributor Author

AmarTrebinjac commented Feb 5, 2025

@capJavert isnt out rule to have everything backward compatible on api.

I guess this all on webapp, but ideally so. Im bit out of the loop why it is this way?

@capJavert I will re-add the param "sourceId" to make it backward compat, but just not use it in the backend. That way, it won't break anything.

Sounds good? 😄

@capJavert
Copy link
Contributor

@AmarTrebinjac sounds good 👍

@AmarTrebinjac AmarTrebinjac merged commit f6e6634 into main Feb 6, 2025
10 checks passed
@AmarTrebinjac AmarTrebinjac deleted the MI-635 branch February 6, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants