Kuadrant / Kuadrant/testsuite-rptool

Refactor: rp_query.py

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
0
Forks
3
Avg merge
18h 10m
Merged PRs (30d)
1

Description

rp_query.py is currently very experimental state, and still a lot of development is happening.
But the code structure is spaghetti. And it need a heavy refactoring, and some API optimizations.

as an example: #2 is one specific issue to address.

But then the whole `rp_query.run_query` main function could use a heavy refactoring, splitting functionality to Query Launches, and listing test cases, to be more maintainable.

- [ ] refactor `rp_query.run_query` split the functionality
- [ ] Optimize/extend any APIs to open reusing the code example #2
- [ ] Refactor any other large chunks of code
- [ ] Do update any related tests

Contributor guide

Open the contributing guide

Research direction

Start by reading rp_query.py, especially the rp_query.run_query function, and review issue #2 for the referenced API case. Map the current responsibilities and related tests before deciding on separations. Done means the requested refactoring, API updates, and related test updates are completed, but the issue does not define a narrower target.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.