-
Notifications
You must be signed in to change notification settings - Fork 118
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
Rename org short code feature added #550
base: main
Are you sure you want to change the base?
Conversation
Graphite Automations"Auto-assign PRs to author" took an action on this PR • (07/09/24)1 assignee was added to this PR based on Rahul Mishra's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the code, everything looks ok
but i realized we will have some big issues if we enable this
the orgshortcode is passed to all api queries
and used to lookup org info from a redis cache
if we allow orgs to change shortcode, the old shortcode will still work for a while (till cache expires)
this isnt a problem
the problem is other users might still be using the old shortcode in the url
so they wouldnt know that the orgshortcode has changed
once the cache expires, the next api call they make will fail
need to work out the best way to redirect logged in org members to the new URL, without the risk of them writing a long email, pressing send, and the api call failing...
@BlankParticle thoughts?
there are lot of stuff tied to org short code, if we want to change org short code we need a list of burnt orgshort codes and make older codes redirect to new codes. Invalidating cache is not a big issue tho That also means every query would need to check if org shortcode has been redirected before proceding I think we should delay this feature until we have a good flow planned |
Also, the |
@BlankParticle I dont think we need to burn shortcodes the same way we burn usernames we already have a method to invalidate an org's shortcode cache |
@yash-kh 99% of queries use the |
I think we should put this in backlog for now |
What does this PR do?
Rename org short code Option added in:
settings -> Organization -> Org profile
Fixes #307
Type of change