Skip to content

[BUG]: Content Group fetching by name is fuzzy matching #239

@DanDavies2

Description

@DanDavies2

Description

When fetching a ContentGroup by name it appears to be doing a fuzzy match and returns the first found object rather than taking the whole string match into consideration

MicroStrategy Support Case

Steps To Reproduce

Steps to reproduce the behavior / a list of methods creating a problem / additional information the code snippet below will not clarify

Code Snippet

Full, reusable code snippet highlighting the problem

It may contain placeholders expected to be filled before running the code

from mstrio.connection import get_connection
from mstrio.project_objects import ContentGroup

conn = get_connection(workstationData)

content1 = ContentGroup.create(connection=conn, name='Supply Chain and Logistics')
content2 = ContentGroup.create(connection=conn, name='Logistics')

retrieve1 = ContentGroup(connection=conn, name='Logistics')

print(retrieve1)

Additional Context (optional)

Any other context about the problem, that does not fit into the sections above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewThe item has just been created and was not seen by MSTR developer yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions