Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@kimcharli
Copy link
Contributor

When the id is assigned from display_name which may have space in the middle, it breaks url /api/resources/ip-pools/{id}.

aos/resources.py Outdated
"tags": tags,
"display_name": name,
"id": name,
# "id": name, # generate to be compliant
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A number of workflows work off the basis that the ID is the same as the name for convenience. Instead of removing this all together, I suggest using replace() to replace spaces with "-".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those scripts with name based should be modified anyway. If so, it would be straight forward to move to uuid instead another potential pitfalls in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not make sense to full on remove the functionality. Now if you want to introduce the option to set ID with default being to set as the name then I am fine with that too.

One of the core goals of this project is to make automation simpler for end users and having a simple human readable name for as many elements as possible helps us do that. It helps reduce workflows and lookup API calls.

aos/resources.py Outdated
"tags": tags,
"display_name": name,
"id": name,
# "id": name, # generate to be compliant
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not make sense to full on remove the functionality. Now if you want to introduce the option to set ID with default being to set as the name then I am fine with that too.

One of the core goals of this project is to make automation simpler for end users and having a simple human readable name for as many elements as possible helps us do that. It helps reduce workflows and lookup API calls.

@that1guy15 that1guy15 merged commit 3cc5ddf into main Feb 23, 2022
@kimcharli kimcharli deleted the ckim branch February 23, 2022 15:27
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.