chore: remove AplUser from file map and remove unused code - #1082
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
There are concrete correctness/CI-risk issues in updated code/comments (notably an unused test helper parameter likely to fail lint/TS settings) that should be fixed before approval.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR removes the legacy AplUser kind from the platform file-mapping system and cleans up related code paths/tests, aligning user persistence with the namespace-scoped SealedSecret flow used elsewhere in the stack.
Changes:
- Removed
AplUserfrom the supported kind list and deleted its file-map entry (env/users/*.yaml). - Deleted the
deleteUserFile()helper that relied on the removedAplUserfile-map. - Updated tests and comments to stop seeding/expecting
AplUserresources in theFileStore.
File summaries
| File | Description |
|---|---|
| src/otomi-stack.ts | Removes the legacy deleteUserFile() helper tied to AplUser file paths. |
| src/otomi-stack.test.ts | Stops creating AplUser resources in FileStore when setting up users in tests. |
| src/otomi-models.ts | Drops AplUser from APL_KINDS, removing it from the valid kind union. |
| src/fileStore/file-store.ts | Updates comment to remove AplUser reference for platform resources. |
| src/fileStore/file-map.ts | Deletes the AplUser file-map entry (env/users/{name}.yaml). |
| src/fileStore/file-map.test.ts | Removes the getResourceFilePath('AplUser', ...) test case. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
CasLubbers
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.