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

Fix bad domain naming for model #17381

Merged
merged 2 commits into from
May 29, 2024
Merged

Fix bad domain naming for model #17381

merged 2 commits into from
May 29, 2024

Conversation

tlm
Copy link
Member

@tlm tlm commented May 16, 2024

Previous commits introduced a function called "Get" for getting a model from state. As far as naming convensions go this is a poor choice of names. This commit makes the change to GetModel to be more clear about the purpose of the function.

Checklist

  • Code style: imports ordered, good names, simple structure, etc
  • [ ] Comments saying why design decisions were made
  • Go unit tests, with comments saying what you're testing
  • [ ] Integration tests, with comments saying what you're testing
  • [ ] doc.go added or updated in changed packages

QA steps

This is just a name change. If unit tests pass and Juju compiles everything is happy.

Documentation changes

N/A

@tlm tlm requested a review from hpidcock May 16, 2024 06:07
@hpidcock hpidcock added the 4.0 label May 22, 2024
Copy link
Member

@hpidcock hpidcock left a comment

Choose a reason for hiding this comment

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

Still need to fix the rest of the uses of Get. But I am happy for this change to go ahead.

Previous commits introduced a function called "Get" for getting a model
from state. As far as naming convensions go this is a poor choice of
names. This commit makes the change to GetModel to be more clear about
the purpose of the function.
Updating modelinfo state interfaces to match the new method definition
for model state.
@tlm
Copy link
Member Author

tlm commented May 29, 2024

/merge

2 similar comments
@tlm
Copy link
Member Author

tlm commented May 29, 2024

/merge

@tlm
Copy link
Member Author

tlm commented May 29, 2024

/merge

@jujubot jujubot merged commit 5afad50 into juju:main May 29, 2024
14 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants