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

Make /report/ url compatible with a legacyid #11771

Open
whatisgalen opened this issue Feb 6, 2025 · 0 comments
Open

Make /report/ url compatible with a legacyid #11771

whatisgalen opened this issue Feb 6, 2025 · 0 comments

Comments

@whatisgalen
Copy link
Member

ResourceInstances are saved with a resourceinstanceid uuid and an optional string legacyid. This report view url could support a query parameter that takes a legacyid string in lieu of a uuid:

/report/1234-abcd...
/report/?legacyid=myLegacyID_with/certain-special!characters

When you import data via csv importer, for example, if you designate a column of non-uuid strings as "use as an id", then presumably those legacyids might be how you primarily identify your resources, especially if the name is intelligible/follows a naming scheme. Additionally, in order to know which resourceinstanceid uuid corresponds to which row in your csv, you'd have to re-export the data and do a lookup against it into your original file.

The drawback to the example approach is that certain characters would be prohibited for legacyid strings, e.g. ?#&%= at a minimum. My guess is that these are rarely used in legacyids anyway.

@chiatt chiatt added this to pipeline Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant