canonical / canonical/postgresql-k8s-operator
Move peer relation code to relations/peers.py
Open
enhancement
- Dominant language
- Python
- Stars
- 15
- Forks
- 33
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 37
Description
Like for other relations, move peer relation code to a new file that can be named `src/relations/peers.py`, so we can reduce the size of the `src/charm.py` file and have a better structure, following what was established for other relations.
Contributor guide
Research direction
Start by reading the peer relation code in src/charm.py and compare it with the files for other relations. Move the peer relation code into src/relations/peers.py while following the established structure, and confirm that the charm retains the same peer relation behavior with the reduced charm.py size.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100