Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

MSP-3: Redirect / to project page on GitHub #36

Merged

Conversation

Freso
Copy link
Member

@Freso Freso commented Jun 17, 2017

Instead of creating a new HTML page as in #35 just makes / do a 302 redirect to GitHub page.

@brainzbot
Copy link
Member

Can one of the admins verify this patch?

@Freso Freso force-pushed the MSP-3-redirect-index-page-to-github branch from f567de7 to 5537be5 Compare June 17, 2017 11:22
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

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

That looks like the right solution to me! 🐷

@gentlecat
Copy link
Contributor

@brainzbot, add to whitelist.

@Freso Freso force-pushed the MSP-3-redirect-index-page-to-github branch from 5537be5 to ee24695 Compare June 17, 2017 13:13
# Index page should ask users to piss off.
self.assertIn("Piss off!", str(response.data))
# Index page should redirect visitors to the project page on GitHub.
self.assertRedirects(302, "https://github.com/metabrainz/mbspotify")
Copy link
Contributor

Choose a reason for hiding this comment

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

You might be able to check the status separately. Check docs for that function at https://pythonhosted.org/Flask-Testing/.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I misread the docs there. Should be fixed in new commit. :)

@Freso Freso force-pushed the MSP-3-redirect-index-page-to-github branch from ee24695 to 4231790 Compare June 17, 2017 13:45
@gentlecat gentlecat merged commit 02ecbdd into metabrainz:master Jun 17, 2017
@Freso Freso deleted the MSP-3-redirect-index-page-to-github branch June 17, 2017 13:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants