Repository navigation
feat(settings): show the project id, read-only (mendixlabs/mxcli#1526) - #1429
Merged
Merged
Conversation
…abs#1526) The project id — the $ID of the Projects$Project root unit every module points to, which Business Events uses as the app id — was shown by no command, so two apps made from one copied model could only be found to share it by grepping mprcontents. The model-engine backend's GetProjectRootID was still the generated "unimplemented" stub; only CreateModule reached the reader's method directly. Backend.GetProjectRootID now delegates to the reader (struck off the unreachable-unimplemented allowlist). describe settings prints it as a `-- Project ID: …` comment, so the output still executes, and show settings (table and JSON) adds a Project row. Read-only: no re-ID command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W3x8Fyvir8kLyPgJs1BDmF
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.
Addresses mendixlabs#1526 (#1408). The maintainer decided to show the project id read-only, with no re-ID command.
Cause
The project id is the
Projects$Projectroot unit's$ID, which every module's ContainerID points to. No command printed it. The model-engine backend'sGetProjectRootIDwas still the generated "unimplemented" stub; onlyCreateModuleread it, directly from the reader.Fix
Backend.GetProjectRootIDnow delegates to the reader. It is removed from theunreachableUnimplementedallowlist, asTestNoReachableUnimplementedBackendMethodsrequires.describe settingsprints-- Project ID: <uuid> (read-only; …)as a comment, so the output still executes.show settingsadds aProjectrow in table and JSON output.Tests
TestGetProjectRootID_IsTheModulesContainer: the id equals every module unit's ContainerID on the real fixture. It failed with "not implemented" before the fix.TestGetProjectRootID_NotConnected.TestDescribeSettings_ShowsProjectIDAsComment.TestShowSettings_ShowsProjectID.TestSettings_NoProjectID.Revert check: with the id stubbed to "", the describe and show tests fail.
Real run: on expr-checker the printed id
bf10dffa-…matches theProjects$Project.mxunit file name.Also updated: the project-settings skill,
docs-site/src/reference/settings/list-describe-settings.md, and a finding file.make build,make test,make lintandmake check-findingspass.Note
The comment says Business Events uses this id as the AppId. That is the reporter's claim; it was not measured here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01W3x8Fyvir8kLyPgJs1BDmF
Generated by Claude Code