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

update self url #245

Merged
merged 1 commit into from
Dec 20, 2023
Merged

update self url #245

merged 1 commit into from
Dec 20, 2023

Conversation

blueSwordfish
Copy link
Contributor

@blueSwordfish blueSwordfish commented Dec 20, 2023

This is to fix the issue that the endpoint of getting the status of a reindexBulk job returns the _self as the url of the request: localhost:8080, when it is supposed to be hostname and port.

Get: /api/v1/substances/@reindexBulk(3f2c825f-c763-4100-b7d8-c166f661fd1d)
Below is an example return data of this endpoint.
{
"statusID": "3f2c825f-c763-4100-b7d8-c166f661fd1d",
"status": "indexing record 2 of 2",
"total": 2,
"indexed": 1,
"failed": 0,
"done": false,
"start": 1703102889883,
"finshed": 0,
"ids": [
"306d24b9-a6b8-4091-8024-02f9ec24b705",
"90e9191d-1a81-4a53-b7ee-560bf9e68109"
],
"_self": "http://localhost:8081/api/v1/substances/@reindexBulk(3f2c825f-c763-4100-b7d8-c166f661fd1d)"
}

@ChemMitch ChemMitch merged commit 0bb97ad into master Dec 20, 2023
22 of 40 checks passed
@blueSwordfish blueSwordfish deleted the updateSelfUrl branch September 17, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants