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

remove unnecessary ending slash (/) in endpoint URLs #4962

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Jun 7, 2024

Closes PROD-2178

Description Of Changes

Many of our endpoints in Fides Admin UI are pointing at a URL unnecessarily ending with / which ends up being redirected in the browser behind the scenes to the same URL without it.

Fixing these URLs in the code is a quick way to optimize our response time!

image

Steps to Confirm

  • Open DevTools to the Network tab
  • Visit Fides Admin UI and click around to various pages
  • Endpoints should be getting called directly without redirecting

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Jun 7, 2024

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

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 6:52pm

Copy link

cypress bot commented Jun 7, 2024

Passing run #8215 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 71c20be into fdce1f8...
Project: fides Commit: 3c935e8c18 ℹ️
Status: Passed Duration: 00:34 💡
Started: Jun 10, 2024 7:00 PM Ended: Jun 10, 2024 7:01 PM

Review all test suite changes for PR #4962 ↗︎

Copy link
Contributor

@galvana galvana left a comment

Choose a reason for hiding this comment

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

Thanks for doing this cleanup! Is there a way to formally enforce this moving forward or will it be something that the front-end devs need to remember?

@gilluminate
Copy link
Contributor Author

@galvana Probably not worth the time to try to enforce URL string patterns in endpoint calls. If I had to guess, someone did it once on accident and others mimicked. We'll see if the pattern returns, but I'm hopeful it's a fluke.

@gilluminate gilluminate force-pushed the gill/PROD-2178_many-endpoints-directed-toward branch from 256bf96 to 71c20be Compare June 10, 2024 18:49
@gilluminate gilluminate merged commit 989d850 into main Jun 10, 2024
13 checks passed
@gilluminate gilluminate deleted the gill/PROD-2178_many-endpoints-directed-toward branch June 10, 2024 20:20
Copy link

cypress bot commented Jun 10, 2024

Passing run #8221 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

remove unnecessary ending slash (/) in endpoint URLs (#4962)
Project: fides Commit: 989d8504fa
Status: Passed Duration: 00:36 💡
Started: Jun 10, 2024 8:32 PM Ended: Jun 10, 2024 8:32 PM

Review all test suite changes for PR #4962 ↗︎

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