Skip to content

FEAT: Add lock option removal for save_as method #1233

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dipinknair
Copy link
Collaborator

@dipinknair dipinknair commented Jul 11, 2025

This pull request introduces enhancements to the save_as method in the app.py file, including the addition of a remove_lock option, and replaces warnings with logging for better error handling. Additionally, it updates the changelog to document these changes.

Enhancements to save_as method:

  • Added a new remove_lock parameter to the save_as method, allowing users to remove lock files before saving the project. This provides more flexibility when dealing with locked project files.
  • Enhanced error handling in save_as by logging detailed error messages, including a hint for resolving lock-related issues, and raising exceptions when saving fails.

Logging improvements:

  • Replaced warnings.warn with self.log_warning in the open method to standardize logging and improve message clarity.

@dipinknair dipinknair requested review from koubaa and klmcadams July 11, 2025 15:39
@dipinknair dipinknair marked this pull request as ready for review July 11, 2025 15:39
@dipinknair dipinknair requested a review from a team as a code owner July 11, 2025 15:39
@github-actions github-actions bot added the enhancement New features or code improvements label Jul 11, 2025
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 11, 2025
Copy link

codacy-production bot commented Jul 14, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.32% (target: -1.00%) 29.41%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (09c9425) 2537 2192 86.40%
Head commit (a986385) 2550 (+13) 2195 (+3) 86.08% (-0.32%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1233) 17 5 29.41%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link

codecov bot commented Jul 14, 2025

Codecov Report

Attention: Patch coverage is 29.41176% with 12 lines in your changes missing coverage. Please review.

Project coverage is 86.07%. Comparing base (09c9425) to head (a986385).

❌ Your patch check has failed because the patch coverage (29.41%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1233      +/-   ##
==========================================
- Coverage   86.40%   86.07%   -0.33%     
==========================================
  Files          39       39              
  Lines        2537     2550      +13     
==========================================
+ Hits         2192     2195       +3     
- Misses        345      355      +10     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dipinknair and others added 2 commits July 14, 2025 12:33
Co-authored-by: Kerry McAdams <58492561+klmcadams@users.noreply.github.com>
@dipinknair dipinknair requested a review from klmcadams July 14, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants