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

Remove unnecessary redirect in the job viewer rest stack. #1269

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

jpwhite4
Copy link
Member

The job viewer rest api has an unusual code path to get the list of jobs
for a given saved search. There is a 302 redirect when the interface
gets the list of jobs. There is no 302 redirect for any of the other
equivalent queries (such as list of information for a job). All of the
required information to respond to the request is in the original request.

This pull request removes the redirect. The path that wasa being
redirected to still remains so as to not break compatibility with any
external systems (they both call the same underlying function).

This was observed while testing #1268

The job viewer rest api has an unusual code path to get the list of jobs
for a given saved search. There is a 302 redirect when the interface
gets the list of jobs. There is no 302 redirect for any of the other
equivalent queries (such as list of information for a job). All of the
required information to respond to the request is in the original request.

This pull request removes the redirect. The path that wasa being
redirected to still remains so as to not break compatibility with any
external systems (they both call the same underlying function).
@jpwhite4 jpwhite4 added this to the 9.0.0 milestone Mar 19, 2020
@jpwhite4 jpwhite4 added the bug Bugfixes label Mar 19, 2020
@jpwhite4
Copy link
Member Author

Note that this code path is tested in the UI tests.

@jpwhite4 jpwhite4 merged commit d109288 into ubccr:xdmod9.0 Mar 30, 2020
@jpwhite4 jpwhite4 deleted the redirect branch March 30, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants