Skip to content

Add $lib.auth.easyperm and $user.vars (SYN-5278) #3167

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

Merged
merged 8 commits into from
Jun 5, 2023
Merged

Conversation

Cisphyx
Copy link
Contributor

@Cisphyx Cisphyx commented Jun 1, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

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

Comparison is base (3b3b2cc) 97.31% compared to head (bd092b9) 97.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3167      +/-   ##
==========================================
- Coverage   97.31%   97.22%   -0.10%     
==========================================
  Files         223      224       +1     
  Lines       44469    44547      +78     
==========================================
+ Hits        43277    43311      +34     
- Misses       1192     1236      +44     
Flag Coverage Δ
linux 97.22% <100.00%> (+<0.01%) ⬆️
linux_replay ?

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

Impacted Files Coverage Δ
synapse/cortex.py 96.88% <100.00%> (-0.52%) ⬇️
synapse/lib/cell.py 98.43% <100.00%> (+<0.01%) ⬆️
synapse/lib/stormlib/easyperm.py 100.00% <100.00%> (ø)
synapse/lib/stormlib/macro.py 100.00% <100.00%> (ø)
synapse/lib/stormtypes.py 98.77% <100.00%> (+<0.01%) ⬆️

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -2228,6 +2228,22 @@ async def popUserProfInfo(self, iden, name, default=None):
user = await self.auth.reqUser(iden)
return await user.profile.pop(name, default=default)

async def getUserVars(self, iden):
user = await self.auth.reqUser(iden)
return user.vars.pack()
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 maybe want to make this a tuple yielder to account for eventually not having them in the hive and potential user var growth?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to iterUserVars

@vEpiphyte vEpiphyte added this to the v2.13x.x milestone Jun 2, 2023
@invisig0th invisig0th merged commit f692220 into master Jun 5, 2023
@invisig0th invisig0th deleted the lib-easyperm branch June 5, 2023 15:46
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