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 the 'Stop Orders' button behavior #48

Merged
merged 7 commits into from
Feb 5, 2023
Merged

Conversation

Michele-Alberti
Copy link
Owner

@Michele-Alberti Michele-Alberti commented Feb 5, 2023

Fix
The Stop Orders button used pn.state.cache to store a status flag, but its value is not shared among web app instances behind an Nginx server. Activating the Stop Orders button affected only the instance where the command is issued.
The status flag (named no_more_orders) is now stored in a dedicated flags table inside the database and shared among every web app instance.

CI
Change conditions that trigger the workflow release_new_version.yaml and update commitizen-action to 0.16.1 (see commitizen-action#56).

Closes #47

github-actions bot and others added 7 commits January 25, 2023 00:38
updates:
- [github.com/commitizen-tools/commitizen: v2.39.1 → v2.40.0](commitizen-tools/commitizen@v2.39.1...v2.40.0)
…base table

add Flags table to database
add set_flag and get_flag support functions
adapt __init__.py and core.py to use the new Flags table
delete flags when cleaning tables
clean_tables now set the no_more_orders flag to false instead of removing every row from the table
get_flag check if the query returns None before setting the value (this avoid masking False values with None)
…tizen-action to 0.16.1

fix a bug with commitizen-action
@Michele-Alberti Michele-Alberti added the bug Something isn't working label Feb 5, 2023
@Michele-Alberti Michele-Alberti self-assigned this Feb 5, 2023
@Michele-Alberti Michele-Alberti merged commit 9ef4086 into main Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🛑 Stop Orders button not working properly with multi-instance deployments
1 participant