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

Swapped onApplicationStart() for applicationStop() where possible and… #403

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cerdish
Copy link

@cerdish cerdish commented Dec 3, 2020

… added onRequestEnd() to run the applicationStop() function. also removed what seemed like some duplicate logic for when to display the dashboard, but i'm not sure if it was really duplicate. everything seems to work fine without it though. I also made it so that if the version changes that causes the application to reset.

the reason for the change is that calling onApplicationStart() doesn't actually reset the application. it just resets the variables. while you would think this would be sufficient, in my experience you often have to change the application name itself in order to get the freshest version of your api to be reflected in the dashboard and requests.

this does mean you don't get the freshest version of the api on that first request for the new version, but you are 100% going to get it on the next request.

… added onRequestEnd() to run the applicationStop() function.
@atuttle
Copy link
Owner

atuttle commented Jan 14, 2022

Sorry for the year+ wait. If you're still interested in getting this change landed, I'd love to talk to you about it. I don't fully understand the motivation for this PR. What exactly was broken that this fixes?

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.

2 participants