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

Edit schema reqs #1983

Merged
merged 6 commits into from
Nov 14, 2023
Merged

Edit schema reqs #1983

merged 6 commits into from
Nov 14, 2023

Conversation

muralibasani
Copy link
Contributor

Linked issue

Resolves: #1737

What kind of change does this PR introduce?

  • Bug fix
  • [ X] New feature
  • Refactor
  • Docs update
  • CI update

What is the current behavior?

Describe the state of the application before this PR. Illustrations appreciated (videos, gifs, screenshots).
Currently it is not possible to edit the schema requests created by owners of the requests

What is the new behavior?

Describe the state of the application after this PR. Illustrations appreciated (videos, gifs, screenshots).

  • Users who created requests will be only able to edit them
  • Requests should be only in CREATED state

Other information

Additional changes, explanations of the approach taken, unresolved issues, necessary follow ups, etc.

Requirements (all must be checked before review)

  • The pull request title follows our guidelines
  • Tests for the changes have been added (if relevant)
  • The latest changes from the main branch have been pulled
  • pnpm lint has been run successfully

muralibasani added 3 commits November 13, 2023 10:39
Signed-off-by: muralibasani <[email protected]>
Signed-off-by: muralibasani <[email protected]>
Signed-off-by: muralibasani <[email protected]>
@@ -376,6 +376,15 @@ public String editAclRequest(
return checkAuth("editAclRequest.html", request, response, abstractAuthenticationToken);
}

@RequestMapping(value = "/editSchemaRequest", method = RequestMethod.GET)
public String editSchemaRequest(
ModelMap model,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is model required here? I don't see it used in this class

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we added a new html page, we would need this.

Copy link
Contributor

@aindriu-aiven aindriu-aiven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was testing it and found I got a "Schema Request : Failure. Schema request is not owned by you." when I did own the request.

Also after it failed the first time the topic got wiped from the form and I couldnt retry either.
There is no log message around why this occured either.
image

Signed-off-by: muralibasani <[email protected]>
Copy link
Contributor

@aindriu-aiven aindriu-aiven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One other issue I noticed is if you switch the force register on and off in the edit section it will keep adding the force register remark so it will repeat several times

Signed-off-by: muralibasani <[email protected]>
Copy link
Contributor

@aindriu-aiven aindriu-aiven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@muralibasani muralibasani merged commit 239b028 into main Nov 14, 2023
21 checks passed
@muralibasani muralibasani deleted the edit-schema-reqs branch November 14, 2023 08:05
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.

UI for Edit My schema requests
2 participants