Skip to content

Comments

Fix User.app() to return actual server data instead of empty values#954

Open
christineyu123 wants to merge 1 commit intomasterfrom
fix-get-app
Open

Fix User.app() to return actual server data instead of empty values#954
christineyu123 wants to merge 1 commit intomasterfrom
fix-get-app

Conversation

@christineyu123
Copy link
Contributor

Bug: User.app() was fetching app data from server but ignoring response.app and returning an App with only app_id and default/empty values.

Fix: Use app.app_info.CopyFrom(response.app) to directly copy the protobuf from server, preserving all fields including enums (e.g., visibility=10).

Test: Added test_get_app() to verify visibility and description are correctly retrieved from server.

Bug: User.app() was fetching app data from server but ignoring response.app
and returning an App with only app_id and default/empty values.

Fix: Use app.app_info.CopyFrom(response.app) to directly copy the protobuf
from server, preserving all fields including enums (e.g., visibility=10).

Test: Added test_get_app() to verify visibility and description are correctly
retrieved from server.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link

Code Coverage

Package Line Rate Health
clarifai 45%
clarifai.cli 68%
clarifai.cli.templates 46%
clarifai.client 65%
clarifai.client.auth 67%
clarifai.constants 100%
clarifai.datasets 100%
clarifai.datasets.export 80%
clarifai.datasets.upload 75%
clarifai.datasets.upload.loaders 37%
clarifai.models 100%
clarifai.rag 0%
clarifai.runners 53%
clarifai.runners.models 64%
clarifai.runners.pipeline_steps 39%
clarifai.runners.pipelines 71%
clarifai.runners.utils 62%
clarifai.runners.utils.data_types 72%
clarifai.schema 100%
clarifai.urls 58%
clarifai.utils 60%
clarifai.utils.evaluation 16%
clarifai.workflows 95%
Summary 62% (10029 / 16303)

Minimum allowed line rate is 50%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants