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

Allow undefined fields in Options and HostOptions #1438

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

dmach
Copy link
Contributor

@dmach dmach commented Oct 19, 2023

Plugins seem to be using oscrc and osc.conf.config to store their config options. All fields that are not known to osc are now stored in the 'extra_fields' dictionary and handled in getitem() and setitem() as they were regular fields. Such values are not checked for their types and the dictionary simply holds strings obtained from oscrc or anything the plugins set through the python API.

Plugins seem to be using oscrc and osc.conf.config to store their config options.
All fields that are not known to osc are now stored in the 'extra_fields' dictionary
and handled in __getitem__() and __setitem__() as they were regular fields.
Such values are not checked for their types and the dictionary simply holds
strings obtained from oscrc or anything the plugins set through the python API.
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (bacac66) 30.41% compared to head (a2e7383) 30.74%.
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1438      +/-   ##
==========================================
+ Coverage   30.41%   30.74%   +0.33%     
==========================================
  Files          49       49              
  Lines       17714    17740      +26     
==========================================
+ Hits         5387     5455      +68     
+ Misses      12327    12285      -42     
Files Coverage Δ
osc/__init__.py 100.00% <100.00%> (ø)
osc/core.py 35.86% <100.00%> (+0.61%) ⬆️
osc/meter.py 52.77% <0.00%> (+2.77%) ⬆️
osc/commandline.py 19.08% <0.00%> (+<0.01%) ⬆️
osc/conf.py 54.54% <88.23%> (+2.04%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kraih
Copy link
Member

kraih commented Oct 19, 2023

All legal reviews in OBS and IBS are currently broken because of this.

@dmach dmach merged commit 62349a3 into openSUSE:master Oct 19, 2023
31 of 32 checks passed
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