Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outdated loep service url #1938

Merged
merged 3 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dataedit/static/metaedit/metaedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ var MetaEdit = function(config) {
window.JSONEditor.defaults.callbacks = {
"autocomplete": {
"search_name": function search(jseditor_editor, input) {
var url = "https://openenergyplatform.org/api/v0/oeo-search?query=" + input;
var url = "https://openenergyplatform.org/api/oeo-search?query=" + input;

return new Promise(function(resolve) {
fetch(url, {
Expand Down Expand Up @@ -427,7 +427,7 @@ var MetaEdit = function(config) {
window.JSONEditor.defaults.callbacks = {
"autocomplete": {
"search_name": function search(jseditor_editor, input) {
var url = "https://openenergyplatform.org/api/v0/oeo-search?query=" + input;
var url = "https://openenergyplatform.org/api/oeo-search?query=" + input;

return new Promise(function(resolve) {
fetch(url, {
Expand Down
2 changes: 1 addition & 1 deletion oeo_ext/templates/oeo_ext/partials/unit_element.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
if (query.length > 0) {
// use static path here to always use the open (data seeded) endpoint for
// all (local, deployed) client executions
fetch(`https://openenergyplatform.org/api/v0/oeo-search?query=${query}`, {
fetch(`https://openenergyplatform.org/api/oeo-search?query=${query}`, {
mode: 'cors',
})
.then(response => response.json())
Expand Down
2 changes: 2 additions & 0 deletions versions/changelogs/current.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## Bugs

- Fix outdated service url to send requests to the LEOP from the oemetaBuilder and oeo-extended features[(#1938)](https://github.com/OpenEnergyPlatform/oeplatform/pull/1938).

## Documentation updates

- Updated documentation to simplify usage of vendor software swagger ui and update the documentation on scenario bundles. Add documentation on how to use the updated OEKG web API [(#1928)](https://github.com/OpenEnergyPlatform/oeplatform/pull/1928).
Loading