-
Notifications
You must be signed in to change notification settings - Fork 662
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
Resolved fetching revisions from wikisource.org #5592
Resolved fetching revisions from wikisource.org #5592
Conversation
@ragesoss Any idea why it appending .org twice at the end of wikidata. |
Probably comes from a call to |
Okay, all js tests are passing. |
I'm not sure. If it's throwing a new error on the back end, then it's probably an unintended side effect of the frontend change you made that is causing unexpected data to reach the backend. This should probably also include a test that exercises the now-working fetching of wikisource.org. Now that I think about it again, I'm not certain that a correct solution won't involve a backend change, for example, to ensure that the |
@ragesoss i resolved all those previous errors just my modifying the logic of toWikiDomain as you expected earlier that this issue is only related to js side of app . Now only one test is failing but this test is also failing before doing any changes in code (like in master also). After Doing Changes : In Master Also : |
const subdomain = wiki.language || 'www'; | ||
return `${subdomain}.${wiki.project}.org`; | ||
const language = (wiki.language) ? `${wiki.language}.` : 'www.'; | ||
const subdomain = (wiki.project === 'wikisource' && !wiki.language) ? '' : language; |
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.
Include a comment here to explain why we have to special-case wikisource.org.
Great. Sounds like the failing test is unrelated; I'll look into that. I would also like this PR to include a new test that would have caught the bug before the toWikiDomain change. |
Looks good, thanks! |
What this PR does
Fixes #5530
This PR resolves the CORS error that is occurring while fetching revisions from wikisource.org
Screenshots
Before:
After: