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

Taking RBAC settings from Alerting plugin default to false #165

Merged
merged 1 commit into from
Sep 22, 2021
Merged

Conversation

akbhatta
Copy link
Contributor

@akbhatta akbhatta commented Sep 22, 2021

Description

  1. Taking RBAC settings from Alerting plugin default to false
  2. Legacy settings removed because all relevant settings are removed or taken from Alerting plugin
  3. Poll API removed as it is not used

[Tests]
All existing tests passed

Signed-off-by: @akbhatta

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Other changes:
1. Legacy settings removed because all relavent settings are removed or taken from Alerting plugin
2. Poll API removed as it is not used

[Tests]
All existing tests passed

Signed-off-by: @akbhatta
@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2021

Codecov Report

Merging #165 (1b08bff) into main (dc55f62) will increase coverage by 2.59%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #165      +/-   ##
============================================
+ Coverage     62.42%   65.01%   +2.59%     
+ Complexity      309      292      -17     
============================================
  Files           101       96       -5     
  Lines          4484     4053     -431     
  Branches        681      632      -49     
============================================
- Hits           2799     2635     -164     
+ Misses         1517     1277     -240     
+ Partials        168      141      -27     
Flag Coverage Δ
dashboards-reports 73.30% <ø> (ø)
reports-scheduler 56.69% <63.63%> (+3.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...nsearch/reportsscheduler/ReportsSchedulerPlugin.kt 100.00% <ø> (ø)
...rch/reportsscheduler/index/ReportInstancesIndex.kt 59.00% <ø> (+12.54%) ⬆️
.../reportsscheduler/model/ReportDefinitionDetails.kt 75.40% <ø> (+1.21%) ⬆️
...n/org/opensearch/reportsscheduler/model/RestTag.kt 100.00% <ø> (ø)
...rch/reportsscheduler/security/UserAccessManager.kt 16.66% <0.00%> (+6.94%) ⬆️
...search/reportsscheduler/settings/PluginSettings.kt 72.13% <88.23%> (+1.64%) ⬆️
...reportsscheduler/action/ReportDefinitionActions.kt 75.00% <100.00%> (ø)
...h/reportsscheduler/action/ReportInstanceActions.kt 73.33% <100.00%> (+11.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc55f62...1b08bff. Read the comment docs.

@@ -27,24 +27,7 @@
##

# configuration file for the reports scheduler plugin
opendistro.reports:
opensearch.reports:
Copy link
Member

Choose a reason for hiding this comment

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

would this break upgrades from opendistro?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are completely removing support for filtering based on this setting because we need to support compatibility with notification plugin. Remaining settings are relevant for admin/maintainers only

Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

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

lgtm
Could you create an issue for removing the polling related code in dashboard-reporting plugin and assign to me?

@akbhatta
Copy link
Contributor Author

lgtm
Could you create an issue for removing the polling related code in dashboard-reporting plugin and assign to me?

#166

@akbhatta akbhatta merged commit c3c8e2f into opensearch-project:main Sep 22, 2021
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.

4 participants