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(dsp-app): Moved reusable form validators to single place. (#DEV-3222) #1381

Conversation

irmastnt
Copy link
Contributor

resolves DEV-3222

…on-by-adding-the-same-keywords

* main:
  fix: add min and max length to keywords validators (#1379)
  fix(dsp-app): resource link form (#DEV-3203) (#1377)
  feat(project form): creating a new project with an existing short code (DEV-3204) (#1368)

# Conflicts:
#	apps/dsp-app/src/app/project/reusable-project-form/reusable-project-form.component.ts
…on-by-adding-the-same-keywords

* main:
  fix: auth guard waits for autologin to happen (#1399)
  fix: autologin logs in with iri from jwt (#1397)
  fix(dsp-app): fixes no search results section (DEV-3240) (#1398)
  refactor: new AppErrorHandler (#1396)
  refactor: remove ngxs storage plugin package (#1395)
  refactor: authentication flow improved, watch localStorage for changes (#1393)
  chore(main): release 11.2.0 (#1307)
  chore: Update dsp-js to v9.1.10 (#1389)
  fix: advanced search number of results bug (#1388)
  fix: list item comment get updated (#1386)
  fix: send gravsearch and search-count request simultaniously (#1380)
  fix(projects list): deactivating-a-project-not-possible (DEV-3206) (#1366)
  fix: keywords chip inputs cannot be duplicated (#1382)
  fix: more readable error message (#1383)
  fix: cancel button in project form goes back to previous page (#1385)
@irmastnt irmastnt changed the title fix(dsp-app): Added duplicate project keyword validator. Moved reusable form validators to single place. (#DEV-3222) fix(dsp-app): Moved reusable form validators to single place. (#DEV-3222) Jan 29, 2024
@@ -34,6 +34,10 @@ export class HumanReadableErrorPipe implements PipeTransform {
return 'This is already taken by another entity';
}

if (error.hasOwnProperty('duplicateExists')) {
return 'Duplicate exists';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be more precise and UX friendly:
"There already exists a field with name {name}"

@irmastnt irmastnt merged commit 1d0f53b into main Jan 29, 2024
13 checks passed
@irmastnt irmastnt deleted the feature/dev-3222-editing-a-project-description-by-adding-the-same-keywords branch January 29, 2024 16:28
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