-
Notifications
You must be signed in to change notification settings - Fork 93
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
SWIG: drop the std::optional from the public API #217
Conversation
8ce188d
to
4bb56c3
Compare
Note: CI tests are failing due to API change in binding. This is resolved in related PR rpm-software-management/ci-dnf-stack#1200. |
819b3f3
to
4bb56c3
Compare
4bb56c3
to
3c36619
Compare
f02e9c3
to
692bc79
Compare
As SWIG bindings don't support std::optional wrappers, moving to default empty string value as an alternative.
As SWIG bindings don't support std::optional wrappers, moving the GoalJobSettings fields into private part of the class.
As SWIG bindings don't support std::optional wrappers, moving to default empty string parameter value as an alternative.
As SWIG bindings don't support std::optional wrappers, moving the fields into private part of the class and switch to raw pointer getters.
As SWIG bindings don't support std::optional wrappers, moving to raw pointer getter.
As SWIG bindings don't support std::optional wrappers, switching the run() method parameters to have default values instead. Also parameters reordering was done, because more common usecase is not passing the user_id parameter.
Expose `advisory_filter` and `group_package_types` through getters on the `GoalJobSettings` struct.
692bc79
to
393f819
Compare
LGTM |
@jan-kolarik It looks like that some test is failing. May I ask you to investigate the issue. |
Yes, these are the API bindings tests, because of the change in the API. There is a PR mentioned in the previous comment fixing this (rpm-software-management/ci-dnf-stack#1200). |
LGTM |
Thank you very much for your contribution |
SWIG bindings don't support the
std::optional
type wrappers, so this PR aims to drop all these references away from the public API.Closes #186.