Repository navigation
My Profile: wait for Egeria at startup, Change User from the main menu - #501
Merged
dwolfson merged 3 commits intoOct 27, 2026
Merged
Conversation
… and changes to allow a user to log in as a different user from the main menu Signed-off-by: Peter Coldicott <86156876+pcoldico@users.noreply.github.com>
…egeria-connection-and-credentials Signed-off-by: Peter Coldicott <86156876+pcoldico@users.noreply.github.com> # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
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.
Summary
ConnectionErrorScreeninstead of exiting with402. It shows the platform URL, view server, user and the reason, and retries every 10 seconds. As soon as Egeria accepts the credentials it closes and the profile loads, so the app can be started before Egeria. Its buttons are Retry Now (r), Change User (u) and Quit (q, exits402).ChangeUserScreen. The splash screen's Change User button and the connection error screen use the same screen.check_egeria_access()inprofile_utils.pyrequests a token and reports why it failed. A successfulcreate_egeria_bearer_token()isn't enough on its own: on a 401 it returns Egeria's JSON error body as if it were the token, so that case is detected and itsexceptionErrorMessageis shown. Previously the splash screen only built a client, so bad credentials weren't found until the profile load failed.change_user()updatessettings.User_Profile, exportsEGERIA_USER/EGERIA_USER_PASSWORDfor pyegeria clients and commands started from the app, sets the main screen subtitle to the new user and reloads the profile.docs/README.mdandRETURN_CODES.md.Test plan
tests/micro-tests/my_profile/test_connection_and_change_user.pycoverscheck_egeria_access, both new screens, the splash Change User button, and the app callbacks (reload when Egeria is back, change user from the error screen and the menu, cancel back to the error screen, quit with402)test_my_egeria.pyupdated: a failed profile load shows the connection error screen instead of exiting;change_userupdates settings, the environment and the subtitlepytest tests/micro-tests/my_profile tests/micro-tests/test_my_egeria_serve.py: 553 passed, 1 skipped (after merging currentmain)🤖 Generated with Claude Code