OpenEnergyPlatform / OpenEnergyPlatform/oeplatform
API calls for oeo-search are always against openenergyplatform.org
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 65
- Forks
- 29
- Avg merge
- 15h 25m
- Merged PRs (30d)
- 32
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
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.
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.
Assessment
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100