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

Tn 1207 cms integration #146

Open
wants to merge 162 commits into
base: master
Choose a base branch
from
Open

Tn 1207 cms integration #146

wants to merge 162 commits into from

Conversation

vokidya
Copy link

@vokidya vokidya commented Jun 20, 2019

Fixes #

  • Unit tests created and pass
  • JS Docs have been updated

Description:

@pencilblue/owners

Logan Genet and others added 30 commits February 15, 2019 19:14
…ved the old handler function from 0.8.1

In serve public content, we correctly attach the data to controllerResult.

In System for handling of public routes and node modules (Which is deprecated for all but core PB routes/pages) there was an issue where a callback function was not awaiting compleition before it was allow to continue the middleware stack.  This was the reason for the error that we saw in the logs - all be it in a very long, round about, and obtuse way.

It would not set the data on the req.controllerResult.  When in Debug mode, that variable is referenced in recordEndTime middleware.  That would error and cause it to fallback into the error handler which would render a new page and call through to the error controller.  Which would go through and reset headers.  By this point, that function that didnt get awaited correctly would have set the headers and sent the request - fulfilling the front end's needs.

In Summary: Correctly sets the controller result int the serving of public routes.  Correctly awaits the completion of serving public content before continuing the middleware stack.  Remove dead code.
Fixing double setting headers and async breakdown
…-create-profile

-dFeature/tn 970 redirect to create profile
…n-to-use-state-param-to-persist-data

enabling state param to the login
…rity-to-create-profile

Add highPriorityToRegister flag to the state params
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.

10 participants