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

Change create product route to POST /api/products #128

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

rachel-carvalho
Copy link
Contributor

WHY are these changes introduced?

We want to perform mutations with a POST instead of a GET.

WHAT is this pull request doing?

18-51-gdfz2-ldfmc.mov

Checklist

Note: once this PR is merged, it becomes a new release for this template.

  • I have added/updated tests for this change N/A
  • I have made changes to the README.md file and other related documentation, if applicable N/A

@rachel-carvalho rachel-carvalho requested a review from a team as a code owner April 18, 2024 16:15
Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

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

LGTM, we just need to set up a PR to update the frontend so all of the BE templates use the same branch.

Copy link
Contributor

Choose a reason for hiding this comment

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

We'll also need a separate PR to update the FE repo, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I marked the frontend PR as ready for review just now because I thought it needed to be updated last, but the templates submodules are pointing to a specific commit, not main, so I believe we can merge in any order we want.

What I did in the template PRs is point to the frontend PR commit SHA, which should remain unchanged once it's merged to main as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I missed the FE PR :)

Will running git submodule update --remote still pull the FE to the latest version if we point it at a specific commit, though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah good call, I just checked and yeah it reverted to the latest commit on main, Shopify/shopify-frontend-template-react@87463db.

Copy link
Contributor

Choose a reason for hiding this comment

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

Which I think makes sense, since the submodule points to main there - when we merge the PR we should be good :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think it's best that I merge the FE PR first then update the BE templates to point to the merge commit or is this fine?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think that might be ideal!

@rachel-carvalho rachel-carvalho merged commit 311e83b into main Apr 18, 2024
10 checks passed
@rachel-carvalho rachel-carvalho deleted the change_create_route_to_post branch April 18, 2024 18:37
@rachel-carvalho rachel-carvalho self-assigned this Apr 18, 2024
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.

2 participants