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

Add server poll #53

Merged
merged 6 commits into from
Apr 2, 2024
Merged

Add server poll #53

merged 6 commits into from
Apr 2, 2024

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Mar 20, 2024

Old code used the term poll in two different ways:

  1. To ask the server to check for changes to a specific event
  2. To get changes to any event, via ntie

No. 1 was not implemented in the zino1 manager and got to keep its name. No. 2 was renamed to "get_event_update" (it only gets one update at a time, if any are available.)

Two bonuses: the UpdateHandler is better documented and there is now only one way to remove an event from the events list.

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 52.94118% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 71.01%. Comparing base (d97de03) to head (d4142f4).
Report is 7 commits behind head on main.

Files Patch % Lines
src/zinolib/controllers/zino1.py 50.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   71.52%   71.01%   -0.51%     
==========================================
  Files          13       13              
  Lines        1366     1380      +14     
==========================================
+ Hits          977      980       +3     
- Misses        389      400      +11     

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

Copy link

github-actions bot commented Mar 20, 2024

Test results

    3 files      3 suites   41s ⏱️
  63 tests   63 ✔️ 0 💤 0
189 runs  189 ✔️ 0 💤 0

Results for commit d4142f4.

♻️ This comment has been updated with latest results.

* More docs
* Easier to use, hopefully
* Rename "poll" to "get_event_update" since there were confusion with
  the other "poll" that asks the server to poll the source of a specific
  event for updates.
Ask the server to check for updates for a specific event.
Copy link
Contributor

@podliashanyk podliashanyk left a comment

Choose a reason for hiding this comment

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

Tested both poll and refresh (ntie) in Howitz. Both work! Refresh functionality that comes with this PR is very useful and effective 🙌

Copy link

sonarcloud bot commented Apr 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hmpf hmpf merged commit 2dabbb7 into Uninett:main Apr 2, 2024
5 of 8 checks passed
@hmpf hmpf deleted the add-server-poll branch April 2, 2024 06:12
@hmpf
Copy link
Contributor Author

hmpf commented Apr 4, 2024

Closes #49, #23

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