Skip to content

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
@vokidya vokidya force-pushed the TN-1207-cms-integration branch from b2fda8b to 9d82f96 Compare June 20, 2019 07:25
@vokidya vokidya force-pushed the TN-1207-cms-integration branch from 9d82f96 to bb14c93 Compare June 20, 2019 08:03
@vokidya vokidya force-pushed the TN-1207-cms-integration branch from 7133ed9 to aa4f408 Compare June 21, 2019 10:17
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