Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_attributes fails to get all Attribute properties unless the project_id is set on the connection #203

Open
hustontrevor opened this issue Nov 19, 2024 · 2 comments
Labels
backlog Created in internal backlog (does not guarantee actual plan and implementation) bug Something isn't working

Comments

@hustontrevor
Copy link

hustontrevor commented Nov 19, 2024

May affect many other lists or Object collection methods

This fails on the ancestors. Debugging shows the ancestors list to have an error about the object not existing in the metadata

mstr_conn = Connection(base_url=my_base_url , username=my_username, password=my_password, ssl_verify=False)
my_project_id = '<a valid project id>'
attributes_list = list_attributes(connection=mstr_conn,project_id=my_project_id)
for a in attributes_list :
    if a.ancestors[1]['name'] != "System Objects":

The problem goes away if you set the project directly, but then what is the point of the project_id being in the list_attributes parameters?
mstr_conn.select_project(project_id=my_project_id)

@hustontrevor hustontrevor changed the title list_attributes fails to get all Attribute properties unless the projedct_id is set on the connection list_attributes fails to get all Attribute properties unless the project_id is set on the connection Nov 19, 2024
@hustontrevor
Copy link
Author

(11.4.9.101)

@apiotrowskiMicroStrategy
Copy link
Contributor

Hi @hustontrevor

I was able to reproduce it in-house and will log it as a backlog defect item.

I'll get back to you when I will have any updates.

@apiotrowskiMicroStrategy apiotrowskiMicroStrategy added bug Something isn't working backlog Created in internal backlog (does not guarantee actual plan and implementation) labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Created in internal backlog (does not guarantee actual plan and implementation) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants