API calls for oeo-search are always against openenergyplatform.org
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start with the three source locations returned by the linked GitHub code search for /api/oeo-search. Check each call and verify that the endpoint works on an alternate Open Energy Platform instance or an instance using a different OEO; done means none of the three calls is tied to openenergyplatform.org.
Written by the indexing model from the issue text.
Description
Description of the issue
There are three calls in the source, where the endpoint /api/oeo-search is called. All these three calls are not relative, but use the whole url: https://openenergyplatform.org/api/oeo-search?query=" + input;
This is fine on the main instance, but a problem on other instances, additionally, if these use a different or extended oeo.
Steps to Reproduce
Ideas of solution
Make calls relative, I'll add a PR just afterward.
Context and Environment
- Version used: current
- Operating system: not relevant
- Environment setup and (python) version: not relevant
Workflow checklist
- I am aware of the workflow in
CONTRIBUTING.md
- Dominant language
- Python
- Stars
- 65
- Forks
- 29
- Avg merge
- 20h 57m
- Merged PRs (30d)
- 34
Contributor guide
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.
More from OpenEnergyPlatform/oeplatform
-
Difficulty 5/5 Over a week Newbie friendliness 40/100
OpenEnergyPlatform/oeplatform#2492 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
OpenEnergyPlatform/oeplatform#2491 ·
-
API bug priority: high ⚡
Difficulty 5/5 Over a week Newbie friendliness 25/100
OpenEnergyPlatform/oeplatform#2490 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 75/100
OpenEnergyPlatform/oeplatform#2488 · 1 comment ·
-
OpenEnergyPlatform/oeplatform#2485 · 1 assignee ·
All issues in OpenEnergyPlatform/oeplatform
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100