Skip to content

Fix implementation of no_context #2215

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 10 commits into from
Apr 16, 2025
Merged

Fix implementation of no_context #2215

merged 10 commits into from
Apr 16, 2025

Conversation

cbellot000
Copy link
Contributor

@cbellot000 cbellot000 commented Apr 11, 2025

Allowing DPF to start without a context had been exposed in pydpf. This wasn't working at all because: the enum created (LicensingContextType.none) had no meaning server side. The effect of using no_context was: dpf default initialization was done, loading most plugins.

With this PR, applying no context is done by using a "eUserDefinedContext"==2 and putting an empty xml path -> no xml.

Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.01%. Comparing base (011bde6) to head (5a83c64).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2215      +/-   ##
==========================================
- Coverage   84.03%   84.01%   -0.03%     
==========================================
  Files          90       90              
  Lines       10313    10308       -5     
==========================================
- Hits         8667     8660       -7     
- Misses       1646     1648       +2     

@a-bouth
Copy link
Contributor

a-bouth commented Apr 15, 2025

@cbellot000 please complete the PR description with minimum information on what this PR's about

@cbellot000
Copy link
Contributor Author

@cbellot000 please complete the PR description with minimum information on what this PR's about

done

Copy link
Contributor

@a-bouth a-bouth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me !

@cbellot000 cbellot000 merged commit 3281872 into master Apr 16, 2025
41 of 42 checks passed
@cbellot000 cbellot000 deleted the feat/no_context branch April 16, 2025 11:27
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.

None yet

2 participants