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

fix(decline): moved email validation in decline application process api #821

Conversation

dhiren-singh-007
Copy link
Contributor

@dhiren-singh-007 dhiren-singh-007 commented Jul 3, 2024

Description

Moved the validation of blank or null comment from child method to parent method.
fixes #820 closes #820

Why

There is a required validation on the comment field at a later stage in this API. Before this, the code makes a call to Keycloak to delete the client for this company.
If we call this API with a blank comment, it throws an exception after deleting the data from Keycloak.
and after that its impossible to cancel the application process

Issue

#820

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes

dependabot bot and others added 5 commits June 14, 2024 11:15
…tusx#789)

Bumps the dependencies group with 3 updates: [docker/build-push-action](https://github.com/docker/build-push-action), [github/codeql-action](https://github.com/github/codeql-action) and [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action).


Updates `docker/build-push-action` from 5.3.0 to 5.4.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@2cdde99...ca052bb)

Updates `github/codeql-action` from 3.25.7 to 3.25.8
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@f079b84...2e230e8)

Updates `aquasecurity/trivy-action` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@fd25fed...595be6a)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(dev-flow): merge latest change from dev in main
…atest-changes-v2.1.0-RC1

ci: merge latest changes from release candidate for 2.1.0
@dhiren-singh-007 dhiren-singh-007 requested a review from Phil91 July 3, 2024 13:26
Copy link
Member

@Phil91 Phil91 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@Phil91 Phil91 left a comment

Choose a reason for hiding this comment

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

@dhiren-singh-007 could you please change the target branch to release/v2.1.0-RC1 and rebase your branch to the branch

@Phil91 Phil91 self-requested a review July 4, 2024 07:23
@dhiren-singh-007 dhiren-singh-007 force-pushed the bugfix/820-fix-email-validation branch from 61fb903 to 3de575c Compare July 4, 2024 07:41
@dhiren-singh-007 dhiren-singh-007 changed the base branch from main to release/v2.1.0-RC1 July 4, 2024 07:41
@dhiren-singh-007
Copy link
Contributor Author

dhiren-singh-007 commented Jul 4, 2024

@Phil91 : thanks , i have changed the target branch and did the rebase from release/v2.1.0-RC1 . Please tell me if I did rebase correctly because it is showing other commits also ?
Also i don't have access to merge the PR , shall i raise a sig-infra issue to get that right?

@dhiren-singh-007 dhiren-singh-007 force-pushed the bugfix/820-fix-email-validation branch 2 times, most recently from c1e193d to 3de575c Compare July 4, 2024 07:55
dependabot bot and others added 5 commits July 4, 2024 09:59
…tusx#789)

Bumps the dependencies group with 3 updates: [docker/build-push-action](https://github.com/docker/build-push-action), [github/codeql-action](https://github.com/github/codeql-action) and [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action).


Updates `docker/build-push-action` from 5.3.0 to 5.4.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@2cdde99...ca052bb)

Updates `github/codeql-action` from 3.25.7 to 3.25.8
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@f079b84...2e230e8)

Updates `aquasecurity/trivy-action` from 0.21.0 to 0.22.0
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@fd25fed...595be6a)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@dhiren-singh-007 dhiren-singh-007 force-pushed the bugfix/820-fix-email-validation branch from dc304b2 to af747f3 Compare July 4, 2024 07:59
@dhiren-singh-007
Copy link
Contributor Author

closing the PR as rebase went wrong and created a new PR #822

@dhiren-singh-007 dhiren-singh-007 deleted the bugfix/820-fix-email-validation branch July 4, 2024 08:12
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.

Company application cancellation | Receives 409 upon cancelling the application process.
3 participants