Skip to content

fix: Nomad profiles should not see app lock - WPB-25543#4808

Open
marcoconti83 wants to merge 1 commit intodevelopfrom
marco/nomad-app-lock
Open

fix: Nomad profiles should not see app lock - WPB-25543#4808
marcoconti83 wants to merge 1 commit intodevelopfrom
marco/nomad-app-lock

Conversation

@marcoconti83
Copy link
Copy Markdown
Member

@marcoconti83 marcoconti83 commented May 11, 2026

https://wearezeta.atlassian.net/browse/WPB-25543

What's new in this PR?

When an account is configured as a nomad profile, that account should not see any app lock prompt, even if the team administrator enforces app lock for the team.

Testing

I've manually tested this on Fulu on a team with app lock enabled

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.13%. Comparing base (e32ba54) to head (64fae00).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4808   +/-   ##
========================================
  Coverage    51.13%   51.13%           
========================================
  Files          610      610           
  Lines        21089    21093    +4     
  Branches      3399     3399           
========================================
+ Hits         10783    10786    +3     
- Misses        9291     9295    +4     
+ Partials      1015     1012    -3     

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e32ba54...64fae00. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +43 to +46
if (coreLogic.getGlobalScope().doesValidNomadAccountExist()) {
send(AppLockConfig.Disabled(DEFAULT_APP_LOCK_TIMEOUT))
return@collectLatest
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

would prefer to do this in kalium lvl where the use case for the team flag app lock will not emit enforced if the user have a nomad URL, doing this here is another DB call when the app starts that we do not need

my suggesiton will mean that the user will not add app lock in the first place

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

On it

@marcoconti83 marcoconti83 changed the title Fix: Nomad profiles should not see app lock - WPB-25543 fix: Nomad profiles should not see app lock - WPB-25543 May 11, 2026
@marcoconti83 marcoconti83 force-pushed the marco/nomad-app-lock branch from ef7b988 to 64fae00 Compare May 11, 2026 14:08
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants