Skip to content

Commit

Permalink
Add link to discussion forum post for EOL for v1 and v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Apr 1, 2024
1 parent 15349da commit 089153d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Classify the change according to the following categories:
- See updates from REopt.jl v0.44.0: https://github.com/NREL/REopt.jl/releases/tag/v0.44.0
- HiGHS, Cbc, and SCIP solvers use Big M notation constraints only in REopt.jl
#### Deprecated
- End-of-Life for v1 and v2 of the API for external/public interfacing from NREL servers
- End-of-Life for v1 and v2 of the API for external/public interfacing from NREL servers. See https://github.com/NREL/REopt-Analysis-Scripts/discussions/148 for more details.

## v3.6.1
### Minor Updates
Expand Down
4 changes: 2 additions & 2 deletions reo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def obj_create(self, bundle, **kwargs):
# End-of-Life for V1 and V2 - as of March 2024
data['inputs'] = bundle.data
data['messages'] = {}
data['messages']['error'] = "v1 and v2 of the REopt API are NO longer available; End-of-Life. Please use /stable (v3)"
data['messages']['error'] = "v1 and v2 of the REopt API are NO longer available; End-of-Life. Please use /stable (v3). See https://github.com/NREL/REopt-Analysis-Scripts/discussions/148 for more details."
raise ImmediateHttpResponse(HttpResponse(json.dumps(data),
content_type='application/json',
status=410)) # "Gone" code for "no longer available"
Expand Down Expand Up @@ -269,7 +269,7 @@ def obj_create(self, bundle, **kwargs):
# End-of-Life for V1 and V2 - as of March 2024
data['inputs'] = bundle.data
data['messages'] = {}
data['messages']['error'] = "v1 and v2 of the REopt API are NO longer available; End-of-Life. Please use /stable (v3)"
data['messages']['error'] = "v1 and v2 of the REopt API are NO longer available; End-of-Life. Please use /stable (v3). See https://github.com/NREL/REopt-Analysis-Scripts/discussions/148 for more details."
raise ImmediateHttpResponse(HttpResponse(json.dumps(data),
content_type='application/json',
status=410)) # "Gone" code for "no longer available"
Expand Down

0 comments on commit 089153d

Please sign in to comment.