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

Switched to default ordering for comments API requests #19774

Merged

Conversation

kevinansfield
Copy link
Contributor

closes ENG-681

There's no need to provide an order param with every request in Comments-UI if the API has default ordering that matches our requirements. The order param makes logs more noisy/harder to read than they need to be so we want to get rid of it.

  • modified comments API input serializer to add a default order param to the browse and replies endpoints when none is provided
  • removed order param from the requests that Comments-UI makes

closes ENG-681

There's no need to provide an `order` param with every request in Comments-UI if the API has default ordering that matches our requirements. The order param makes logs more noisy/harder to read than they need to be so we want to get rid of it.

- modified comments API input serializer to add a default order param to the browse and replies endpoints when none is provided
- removed order param from the requests that Comments-UI makes
@kevinansfield kevinansfield marked this pull request as ready for review February 28, 2024 18:31
@kevinansfield kevinansfield merged commit 44e602b into TryGhost:main Feb 28, 2024
20 checks passed
@kevinansfield kevinansfield deleted the remove-order-from-comments-requests branch February 28, 2024 18:42
9larsons pushed a commit that referenced this pull request Feb 28, 2024
closes ENG-681

There's no need to provide an `order` param with every request in Comments-UI if the API has default ordering that matches our requirements. The order param makes logs more noisy/harder to read than they need to be so we want to get rid of it.

- modified comments API input serializer to add a default order param to the browse and replies endpoints when none is provided
- removed order param from the requests that Comments-UI makes
allouis pushed a commit that referenced this pull request Mar 1, 2024
closes ENG-681

There's no need to provide an `order` param with every request in Comments-UI if the API has default ordering that matches our requirements. The order param makes logs more noisy/harder to read than they need to be so we want to get rid of it.

- modified comments API input serializer to add a default order param to the browse and replies endpoints when none is provided
- removed order param from the requests that Comments-UI makes
allouis added a commit that referenced this pull request Mar 3, 2024
* upstream/main: (44 commits)
  v5.80.0
  Update dependency yjs to v13.6.14
  Update dependency yjs to v13.6.13
  Content card design improvements (#19737)
  Remove comment icon at the top of email template (#19771)
  ✨ Added lazy-loading of comments data (#19778)
  Update dependency nodemailer to v6.9.11
  🎨 Include archived offers in members filter (#19756)
  Added /comments/:id/replies/ to X-Cache-Invalidate
  🐛 Prevented newsletter subscriptions from getting out of sync in Portal (#19768)
  Released Comments-UI 0.15.0 (#19775)
  Switched to default ordering for comments API requests (#19774)
  Cleaned up comments controller
  Invalidated post comments cache on like&unlike
  Invalidated the new comments endpoint cache on add & edit
  Updated Comments UI to use new endpoint
  Added endpoint for comments/post/:post_id
  Added hrefs to paywall links for improved SEO
  Ensured that endpoint header config is not modified in future
  🐛 Fixed cache invalidation header race conditions
  ...
royalfig pushed a commit that referenced this pull request Mar 25, 2024
closes ENG-681

There's no need to provide an `order` param with every request in Comments-UI if the API has default ordering that matches our requirements. The order param makes logs more noisy/harder to read than they need to be so we want to get rid of it.

- modified comments API input serializer to add a default order param to the browse and replies endpoints when none is provided
- removed order param from the requests that Comments-UI makes
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.

None yet

2 participants