OpenEnergyPlatform / OpenEnergyPlatform/oeplatform

API calls for oeo-search are always against openenergyplatform.org

Open Beginner friendly
#2,292 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. https://github.com/search?q=repo%3AOpenEnergyPlatform%2Foeplatform+api%2Foeo-search&type=code

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.