RedHatQE / RedHatQE/widgetastic.core
partial_match does not support parenthesis () in object
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
During instance reconfigure, user is required to supply a new flavor
Navigate to instance details and them got to Configuration > Reconfigure this instance
The name of the flavor appears along with it;s properties like this:
m12.tiny (1 CPU, 0.0625 GB RAM, 3.0 GB Root Disk)
It seems that because parenthesis () are special characters, partial match is failing
So, view.form.flavor.fill('m12.tiny (1 CPU, 0.0625 GB RAM, 3.0 GB Root Disk)') is working
But: view.form.flavor.fill('m12.tiny') is not
We need the ability to partially match string with parenthesis ()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing partial_match from the view.form.flavor.fill examples and inspect how matching handles the flavor string shown in the issue. Reproduce the difference between the full value and the partial value, then add coverage for parentheses and confirm that the partial match succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100