8000 perf: improved `DocStatus` API and other minor improvements (backport #31389) by mergify[bot] · Pull Request #31394 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

perf: improved DocStatus API and other minor improvements (backport #31389) #31394

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

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented Feb 24, 2025
  • Introduce DocStatus.DRAFT, DocStatus.SUBMITTED and DocStatus.CANCELLED constants, update usage
  • Use constants in existing DocStatus methods
  • Remove unnecessary cint calls
  • set as_value more often in doc.update (and ensure boolean)

Couple of enhancements that I wanted to do but left out of PR's scope as they can have unintended consequences:

(cherry picked from commit fcf657b)

# Conflicts:
#	frappe/model/document.py

This comment was marked as outdated.

@sagarvora sagarvora enabled auto-merge (squash) February 24, 2025 10:07
@sagarvora sagarvora merged commit 4f28676 into version-15-hotfix Feb 24, 2025
15 of 16 checks passed
@sagarvora sagarvora deleted the mergify/bp/version-15-hotfix/pr-31389 branch February 24, 2025 10:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0