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

Mark macro functions readonly safe, mark str type functions as readonly safe (SYN-6063) #3316

Merged
merged 3 commits into from Aug 29, 2023

Conversation

vEpiphyte
Copy link
Contributor

No description provided.

@vEpiphyte vEpiphyte added the bug label Aug 29, 2023
@vEpiphyte vEpiphyte added this to the v2.14x.x milestone Aug 29, 2023
synapse/tests/test_lib_stormlib_macro.py Outdated Show resolved Hide resolved
@@ -294,3 +294,29 @@ async def test_stormlib_macro_globalperms(self):
await visi.addRule((True, ('storm', 'macro', 'admin')))
msgs = await core.stormlist('macro.del asdf', opts={'user': visi.iden})
self.stormHasNoWarnErr(msgs)

async def test_stormlib_macro_readonly(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just add readonly options to some existing tests for macros / string methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved them.

@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.10% ⚠️

Comparison is base (22cf27b) 97.29% compared to head (9d7793a) 97.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3316      +/-   ##
==========================================
- Coverage   97.29%   97.19%   -0.10%     
==========================================
  Files         228      228              
  Lines       45880    45902      +22     
==========================================
- Hits        44637    44613      -24     
- Misses       1243     1289      +46     
Flag Coverage Δ
linux 97.19% <100.00%> (+<0.01%) ⬆️
linux_replay ?

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

Files Changed Coverage Δ
synapse/lib/stormlib/macro.py 100.00% <100.00%> (ø)
synapse/lib/stormtypes.py 98.74% <100.00%> (+<0.01%) ⬆️

... and 9 files with indirect coverage changes

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

@invisig0th invisig0th merged commit c5501c5 into master Aug 29, 2023
5 checks passed
@invisig0th invisig0th deleted the feat_macro_readonly branch August 29, 2023 16:09
@vEpiphyte vEpiphyte added reqChangelog requires changelog and removed reqChangelog requires changelog labels Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants