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

MBS-10087: Convert doc pages to React #987

Merged
merged 5 commits into from Aug 14, 2019

Conversation

reosarevok
Copy link
Member

https://tickets.metabrainz.org/browse/MBS-10087

Talking with @mwiencek we decided to get rid of the bare_ pages, because they didn't seem to be requested ever and we can't find any info of why they were added.

lib/MusicBrainz/Server/Controller/Doc.pm Outdated Show resolved Hide resolved
lib/MusicBrainz/Server/Controller/Doc.pm Show resolved Hide resolved
root/doc/DocError.js Show resolved Hide resolved
}: Props) => {
let doc = '';
let lastDoc = '';
const wikiPageUrl = `//${wikiServer}/${id}`;
Copy link
Member Author

Choose a reason for hiding this comment

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

I was going to use encodeURIComponent() here, but it messes up with the slashes, so hopefully we don't need to.

root/doc/DocPage.js Show resolved Hide resolved
root/doc/DocPage.js Show resolved Hide resolved
root/main/404.js Outdated Show resolved Hide resolved
@reosarevok reosarevok force-pushed the MBS-10087 branch 2 times, most recently from d7cd0ee to 517d40e Compare May 15, 2019 18:53
root/doc/DocError.js Outdated Show resolved Hide resolved
lib/MusicBrainz/Server/Controller/Doc.pm Outdated Show resolved Hide resolved
root/doc/DocError.js Outdated Show resolved Hide resolved
lib/MusicBrainz/Server/Controller/Doc.pm Outdated Show resolved Hide resolved
lib/MusicBrainz/Server/Entity/WikiDocPage.pm Outdated Show resolved Hide resolved
@@ -1,20 +0,0 @@
<h1>[%- l('Page Not Found') -%]</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

root/doc/bare_error.tt should be deleted by the first commit instead

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't, because doc_error actually uses it ([% PROCESS 'doc/bare_error.tt' %])

Copy link
Member Author

Choose a reason for hiding this comment

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

[% PROCESS 'doc/bare_error.tt' %]

root/doc/components/DocSearchBox.js Show resolved Hide resolved
root/doc/DocPage.js Outdated Show resolved Hide resolved
Copy link
Contributor

@yvanzo yvanzo left a comment

Choose a reason for hiding this comment

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

:shipit:

@reosarevok reosarevok merged commit ee05e2b into metabrainz:master Aug 14, 2019
@reosarevok reosarevok deleted the MBS-10087 branch August 14, 2019 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants