unit-test: disable relationships for batch edit and enable rollback in user preferences - #8500
unit-test: disable relationships for batch edit and enable rollback in user preferences#8500kwhuber wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe PR adds a new test file for ChangesDataset variants testing
Merge Risk: ⚪ Minimal · up to This change adds dataset-variant permission test scaffolding without modifying production behavior. No merge-readiness risk is currently identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (4 passed)
Full details: Automatic TestsExplanation The PR does not include an automatic test case. It adds only imports, a Jest mock, and a typed mock reference in Full details: Testing InstructionsExplanation The pull request has no testing instructions. The authored Testing instructions section contains only template comments, so it gives no verification steps for the new Resolution Add concrete testing instructions. State that commands run from
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| @@ -0,0 +1,10 @@ | |||
| import { hasPermission } from '../../Permissions/helpers'; | |||
| import { userPreferences } from '../../Preferences/userPreferences'; | |||
| @@ -0,0 +1,10 @@ | |||
| import { hasPermission } from '../../Permissions/helpers'; | |||
| import { userPreferences } from '../../Preferences/userPreferences'; | |||
| import { datasetVariants } from '../datasetVariants'; | |||
| hasPermission: jest.fn(), | ||
| })); | ||
|
|
||
| const mockedHasPermission = hasPermission as jest.Mock; |
Fixes #8499
Checklist
self-explanatory (or properly documented)
specify7/specifyweb/specify/management/commands/run_key_migration_functions.py
Line 50 in ea04665
Testing instructions
Summary by CodeRabbit