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

Update nexus readonly error to include reason text (SYN-6148) #3359

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

Cisphyx
Copy link
Contributor

@Cisphyx Cisphyx commented Sep 28, 2023

No description provided.

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

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

Comparison is base (e86eea5) 97.30% compared to head (8305922) 97.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3359      +/-   ##
==========================================
- Coverage   97.30%   97.20%   -0.11%     
==========================================
  Files         228      228              
  Lines       46723    46731       +8     
==========================================
- Hits        45463    45424      -39     
- Misses       1260     1307      +47     
Flag Coverage Δ
linux 97.20% <92.30%> (-0.01%) ⬇️
linux_replay ?

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

Files Coverage Δ
synapse/lib/nexus.py 96.05% <100.00%> (+0.07%) ⬆️
synapse/lib/cell.py 97.82% <80.00%> (+<0.01%) ⬆️

... and 10 files with indirect coverage changes

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

@vEpiphyte vEpiphyte added enhancement reqChangelog requires changelog labels Sep 28, 2023
@vEpiphyte vEpiphyte added this to the v2.15x.x milestone Sep 28, 2023
@@ -271,7 +276,7 @@ async def issue(self, nexsiden, event, args, kwargs, meta=None):
assert self.started, 'Attempt to issue before nexsroot is started'

if self.readonly:
raise s_exc.IsReadOnly(mesg='Unable to issue Nexus events when readonly is set')
raise s_exc.IsReadOnly(mesg=self.readonlyreason)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a default if reason isn't specified?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a default reason.

@Cisphyx Cisphyx merged commit 91a2b7c into master Oct 3, 2023
@Cisphyx Cisphyx deleted the nexus-readonly-errmsg branch October 3, 2023 15:13
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants