Skip to content

Conversation

@timea-solid
Copy link
Contributor

The names are at the moment taken form the JS library:

  • Request issueAccessRequest
  • CompletionStage approveAccessRequest
    We can of course rethink the names.

The issueAccessRequest has a toCompletableFuture().join() now, not sure.

@timea-solid timea-solid marked this pull request as ready for review April 14, 2023 16:47
@timea-solid timea-solid requested a review from a team as a code owner April 14, 2023 16:47
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 16:47 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 14, 2023 16:47 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext April 14, 2023 16:47 — with GitHub Actions Inactive
@timea-solid timea-solid marked this pull request as draft April 14, 2023 17:53
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 17, 2023 13:33 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 17, 2023 13:33 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext April 17, 2023 13:33 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 17, 2023 14:06 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 17, 2023 14:06 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext April 17, 2023 14:06 — with GitHub Actions Inactive
@timea-solid timea-solid marked this pull request as ready for review April 17, 2023 14:07
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 21, 2023 07:58 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces April 21, 2023 07:58 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext April 21, 2023 07:58 — with GitHub Actions Inactive
Copy link
Collaborator

@acoburn acoburn left a comment

Choose a reason for hiding this comment

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

Might be worth discussing this in more detail

* @param request an AccessRequest
* @return the next stage of completion containing the resulting credential
*/
public CompletionStage<AccessGrant> approveAccessRequest(final AccessRequest request) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would call this issueAccessGrant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

issueAccessRequest name is to specify it is a request and not the actual issue call.
I call it better issueGrantRequest

/**
* An Access Grant issue request.
*/
public class AccessRequest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would have this extend or implement an AccessCredential type

return this.data;
}

public AccessRequest(final Map<String, Object> data) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would make this more structured. A map is too general

@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 10:41 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 10:41 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext May 9, 2023 10:41 — with GitHub Actions Inactive
@timea-solid
Copy link
Contributor Author

I know we discussed removing the extra class but that would require me to pass Map<String, Object> around. Because of this, I try here to create more architecture.
Is it going in the right direction?

@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 15:11 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 15:11 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext May 9, 2023 15:11 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 16:01 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS PodSpaces May 9, 2023 16:01 — with GitHub Actions Inactive
@timea-solid timea-solid temporarily deployed to ESS DevNext May 9, 2023 16:01 — with GitHub Actions Inactive
@timea-solid timea-solid marked this pull request as draft May 10, 2023 11:14
@acoburn
Copy link
Collaborator

acoburn commented May 19, 2023

Superseded by #461

@acoburn acoburn closed this May 19, 2023
@acoburn acoburn deleted the jcl-335-approveGrant branch May 19, 2023 12:59
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.

3 participants