Skip to content

Use new weblab share url and redirect old one - #47421

Merged
bethanyaconnor merged 6 commits into
stagingfrom
bethany/use-new-weblab-share-url
Sep 7, 2022
Merged

Use new weblab share url and redirect old one#47421
bethanyaconnor merged 6 commits into
stagingfrom
bethany/use-new-weblab-share-url

Conversation

@bethanyaconnor

@bethanyaconnor bethanyaconnor commented Jul 28, 2022

Copy link
Copy Markdown
Contributor

This is a fairly long overdue follow up to launching codeprojects on dashboard. As part of that change, we moved codeprojects share URLs to be in the pattern of /projects/weblab/ instead of just /. This PR redirects the old version of the URL to the new one as well as surfacing the new format in the share dialog.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@bethanyaconnor
bethanyaconnor force-pushed the bethany/use-new-weblab-share-url branch from f2249a4 to 62170f6 Compare August 31, 2022 18:06
@bethanyaconnor
bethanyaconnor marked this pull request as ready for review September 2, 2022 14:52
@bethanyaconnor
bethanyaconnor requested review from a team September 2, 2022 14:53

@davidsbailey davidsbailey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good after addressing one comment. I didn't see any mention of codeprojects in our UI tests. can say what you did to test this end-to-end before merging?

pass unless valid_encrypted_channel_id(encrypted_channel_id)

get_file('files', encrypted_channel_id, filename, true)
redirect "/projects/weblab#{request.path_info}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

now this route looks like a duplicate of the route on line 205. if this change is intentional, perhaps this route can just be removed? if you want to keep it, I think it would be helpful to include an example of the route you are trying to match in the comments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call! I deduplicated them

@bethanyaconnor

Copy link
Copy Markdown
Contributor Author

I didn't see any mention of codeprojects in our UI tests. can say what you did to test this end-to-end before merging?

It turns out that codeprojects doesn't work outside of production and development, so there aren't any tests for it (Suresh actually helped me set it up for development a few months ago so before then it was production only). I tested everything locally by going to localhost.codeproject.org:3000/, etc and confirming that I was seeing the correct behavior.

@davidsbailey

Copy link
Copy Markdown
Member

I tested everything locally by going to localhost.codeproject.org:3000/, etc and confirming that I was seeing the correct behavior.

this works for me!

@bethanyaconnor
bethanyaconnor merged commit 569af27 into staging Sep 7, 2022
@bethanyaconnor
bethanyaconnor deleted the bethany/use-new-weblab-share-url branch September 7, 2022 12:21
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