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 edit-story route #52

Open
6 tasks
tim-phillips opened this issue Sep 7, 2018 · 0 comments
Open
6 tasks

Change edit-story route #52

tim-phillips opened this issue Sep 7, 2018 · 0 comments

Comments

@tim-phillips
Copy link
Member

Since stories are unique by author_id and slug and users are unique by slug, we should change the edit-story route from /edit/:storySlug to /edit/:authorSlug/:storySlug.

To do:

  • change route
  • add graphql query storyByAuthorSlugAndStorySlug
  • query story using above with authorSlug and storySlug
  • check authorSlug to session.slug?
  • deploy
  • remove graphql query storyBySlug

The query is already indexed since news.stories is unique on (author_id, slug).

@tim-phillips tim-phillips self-assigned this Sep 7, 2018
@tim-phillips tim-phillips removed their assignment Nov 25, 2018
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

No branches or pull requests

1 participant