Modernize the app template - #11
Merged
Merged
Conversation
…obot.Client() - Replace requirements.txt with pyproject.toml (uv-managed) - Add config.py using DataRobotAppFrameworkBaseSettings for typed env var reading - Use datarobot.Client() (no args) in _proxy() for token/endpoint resolution - Read BASE_PATH via Config instead of os.getenv() - Add datarobot and pydantic-settings dependencies
…ttings - Remove stale start-app.sh credential export snippet - Replace MLOPS_RUNTIME_PARAM_* shell-export pattern with Config class approach - Add uv setup instructions - Document DataRobotAppFrameworkBaseSettings and runtime parameter workflow
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 702797b. Configure here.
kideh88
approved these changes
Apr 13, 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.

Summary of Changes
Modernize the app template to rely on the DataRobot Python client and DataRobotAppFrameworkBaseSettings for automatic credential, base-path, and runtime-parameter loading, removing the previous os.getenv()/start-app.sh guidance.
Note
Medium Risk
Switches credential/base-path handling to
datarobot.Client()andDataRobotAppFrameworkBaseSettings, which can affect authentication and routing behavior if environment/runtime parameters are misconfigured.Overview
Modernizes the Flask template to rely on the DataRobot Python client and
DataRobotAppFrameworkBaseSettingsinstead of manualos.getenv()wiring.The app now derives
BASE_PATHvia a newConfigclass (src/config.py), usesdatarobot.Client()for endpoint/token when proxying API calls, and computes the API docs URL at request time. Packaging is updated topyproject.toml/uv(droppingrequirements.txt), and the README/runtime-parameter guidance is revised to match the new automatic configuration flow.Reviewed by Cursor Bugbot for commit 5e801b6. Bugbot is set up for automated code reviews on this repo. Configure here.