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

# 553807 - revise permission observatory API #72

Merged
merged 1 commit into from
Dec 6, 2019
Merged

# 553807 - revise permission observatory API #72

merged 1 commit into from
Dec 6, 2019

Conversation

eparovyshnaya
Copy link
Contributor

@eparovyshnaya eparovyshnaya commented Dec 5, 2019

  • Observatory is renamed to Pool
  • GuardedObservatory is renamed to Observatory
  • schedule semantics is formed to a separate class
  • which is, in turn, covered with tests
  • lic.base bundle version is incremented in patch part according to semver as the new release cycle has just begun

Signed-off-by: elena.parovyshnaya [email protected]

@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

Merging #72 into master will increase coverage by 0.13%.
The diff coverage is 91.48%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master     #72      +/-   ##
===========================================
+ Coverage      9.54%   9.67%   +0.13%     
- Complexity       98     103       +5     
===========================================
  Files           401     403       +2     
  Lines         12598   12618      +20     
  Branches       1102    1102              
===========================================
+ Hits           1202    1221      +19     
- Misses        11360   11361       +1     
  Partials         36      36
Impacted Files Coverage Δ Complexity Δ
...ic/internal/base/permission/LimitedPermission.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...nal/base/permission/BasePermissionObservatory.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...l/equinox/access/EquinoxPermissionObservatory.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ernal/base/permission/observatory/Observatory.java 100% <100%> (ø) 0 <0> (ø) ⬇️
...base/permission/observatory/CheckScheduleTest.java 100% <100%> (ø) 4 <4> (?)
...l/base/permission/observatory/ObservatoryTest.java 89.79% <100%> (+0.21%) 10 <1> (+1) ⬆️
...ic/internal/base/permission/observatory/Guard.java 100% <100%> (ø) 0 <0> (ø) ⬇️
...nal/base/permission/observatory/CheckSchedule.java 100% <100%> (ø) 0 <0> (?)
...lic/internal/base/permission/observatory/Pool.java 100% <100%> (ø) 0 <0> (?)
... and 2 more

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 aaafdf3...01dc63f. Read the comment docs.

Copy link
Contributor

@ruspl-afed ruspl-afed left a comment

Choose a reason for hiding this comment

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

Please correct @SInCE tag

/**
* Default schedule is 10 minutes.
*
* @since 1.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

we do not have version 1.6.1

Copy link
Contributor

@ruspl-afed ruspl-afed left a comment

Choose a reason for hiding this comment

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

The version tag still needs refinement

* expired entries each 5 minutes (or so).
* </p>
*
* @since 0.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally "since" tag value has only major.minor form

*
* @param amount number of units
* @unit {@linkplain ChronoUnit} constant to measure {@code amount}
* @since 0.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally "since" tag value has only major.minor form

* Default schedules are measured in minutes.
*
* @param minutes number of minutes
* @since 0.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally "since" tag value has only major.minor form

/**
* Reports the scheduled period duration in seconds.
*
* @since 0.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally "since" tag value has only major.minor form

/**
* Default schedule is 10 minutes.
*
* @since 0.6.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Normally "since" tag value has only major.minor form

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this mean, it can be not equal to current bundle version? Must simple 0.6 appear there?

Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly. API may not be added with service release, only with minor one. So, the "0.6.1" is "0.6"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this mean we must mention since-version only on public apis? (which is not ther case here)

 - Observatory is renamed to Pool
 - GuardedObservatory is renamed to Observatory
 - schedule semantics is formed to a separate class
 - which is, in turn, covered with tests


Signed-off-by: elena.parovyshnaya <[email protected]>
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