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

fix: Disable role invite processing in fastboot mode #4038

Merged
merged 2 commits into from
Feb 9, 2020

Conversation

iamareebjamal
Copy link
Member

Fixes #3347

@auto-label auto-label bot added the fix label Feb 9, 2020
@codecov
Copy link

codecov bot commented Feb 9, 2020

Codecov Report

Merging #4038 into development will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4038      +/-   ##
===============================================
- Coverage        21.90%   21.90%   -0.01%     
===============================================
  Files              460      460              
  Lines             4733     4735       +2     
===============================================
  Hits              1037     1037              
- Misses            3696     3698       +2     

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5679da2...bb39871. Read the comment docs.

@iamareebjamal iamareebjamal merged commit 46ad4ce into fossasia:development Feb 9, 2020
@iamareebjamal iamareebjamal deleted the role-invite branch February 9, 2020 19:53
@kushthedude
Copy link
Member

This is more of a workaround, to ignore the fastboot crashes in the production.

@iamareebjamal
Copy link
Member Author

iamareebjamal commented Feb 10, 2020

OK, I'll be waiting for your fix 👍

@kushthedude
Copy link
Member

kushthedude commented Feb 10, 2020 via email

@iamareebjamal
Copy link
Member Author

transitionTo throws an error in fastboot mode. Not because of a bug, it is by design. It is not meant to work in fastboot mode. Only on client

Read This:
ember-fastboot/fastboot#54

FastBoot should never call transitionTo
transitionTo should only be called client-side.

We use fastboot to render the HTML on server before it reaches client. This route only sends a POST request to API server and redirects. There is no HTML to be rendered, so why should it be handled on fastboot server?

@iamareebjamal
Copy link
Member Author

Even if you replace transitionTo with replaceWith, you'll not get the route HTML - embermap/ember-cli-fastboot-testing#204

This is the disadvantage of letting a framework do the heavy lifting for us. We just don't have enough control

@iamareebjamal
Copy link
Member Author

Moar examples - iezer/splanky@be70603

@iamareebjamal
Copy link
Member Author

Issue opened since 2016 (about 4 years) - ember-fastboot/ember-cli-fastboot#202

@iamareebjamal
Copy link
Member Author

iamareebjamal commented Feb 10, 2020

More issues - ember-learn/ember-api-docs#128

You can try the "fix" using redirect instead of afterModel or model, but everything is a workaround when the issue is upstream - ember-learn/ember-api-docs#129

ember-learn/ember-api-docs#129
ember-learn/ember-api-docs#262

@kushthedude
Copy link
Member

kushthedude commented Feb 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error message after accepting a role-invite
2 participants