Skip to content

Conversation

@manuel-delvillar
Copy link
Contributor

@manuel-delvillar manuel-delvillar commented May 31, 2023

News

  • You can use all Paginated to request all job codes and filter them (API / UI)
  • You can delete a job code if it is not used in any RSDs and does not have children. (API / UI)
  • Sort ascending and descending by occupation, level and job code.
Screenshot 2023-06-06 at 17 10 52 Screenshot 2023-06-06 at 17 11 05

Changes

  • Add query parameter in allPaginated method to support search.
  • Add id in ApiJobCode because ID is used to delete, update and get a specified job code.

Warning It's necessary to reindex elastic search due to a new inner field

@manuel-delvillar manuel-delvillar changed the base branch from develop to feature/admin-screens May 31, 2023 23:28
@manuel-delvillar manuel-delvillar force-pushed the feature/OSMT-280-search-job-codes branch 2 times, most recently from 7cddc2a to 3d99156 Compare June 6, 2023 22:43
@manuel-delvillar manuel-delvillar self-assigned this Jun 6, 2023
@manuel-delvillar manuel-delvillar added the enhancement New feature or request label Jun 6, 2023
@manuel-delvillar manuel-delvillar marked this pull request as ready for review June 6, 2023 23:12
@manuel-delvillar manuel-delvillar requested a review from a team June 6, 2023 23:13
@manuel-delvillar manuel-delvillar changed the title Feature/osmt 280 search job codes Search and Delete Job Codes Jun 6, 2023
Copy link
Contributor

@schagantiwgu schagantiwgu left a comment

Choose a reason for hiding this comment

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

User functionality changes

While deleting multiple job codes at the same time as there is an option at the bottom of the page "delete selected" the "delete" option on single record/checkbox on single record needs to be disabled.
Having a single record delete option is deleting only a single record even when multiple are selected and the "select all" box doesn't clear but each of the single selects gets cleared.
After that the "delete selected" option is still visible to the user and when clicked deletes all the records.

Note: If more than one record is selected, enable "delete selected" option else disable that and keep "delete" option on single record enabled.

Screenshots demonstrating the UI experience

Screenshot 2023-06-09 at 9 42 40 AM Screenshot 2023-06-09 at 9 53 01 AM

@manuel-delvillar manuel-delvillar force-pushed the feature/OSMT-280-search-job-codes branch from 04c0130 to 0cb85d8 Compare June 9, 2023 20:42
@schagantiwgu schagantiwgu self-requested a review June 9, 2023 21:23
Copy link
Contributor

@schagantiwgu schagantiwgu left a comment

Choose a reason for hiding this comment

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

  • Empty pop up showing while "delete" option is disabled. Instead disable the click on three dots.
  • "Select all" checkbox needs to reset when:
    1. All records are deleted
    2. All records are not selected
    3. Select all resets if data in table has changed or for new search.

@manuel-delvillar manuel-delvillar force-pushed the feature/OSMT-280-search-job-codes branch from 42f3de9 to 39f0839 Compare June 13, 2023 18:10
@manuel-delvillar manuel-delvillar force-pushed the feature/OSMT-280-search-job-codes branch from 39f0839 to 71c55ff Compare June 13, 2023 18:26
Copy link
Contributor

@wgu-edwin wgu-edwin left a comment

Choose a reason for hiding this comment

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

Looks good to me

@manuel-delvillar manuel-delvillar merged commit 4acc260 into feature/admin-screens Jun 20, 2023
@manuel-delvillar manuel-delvillar deleted the feature/OSMT-280-search-job-codes branch June 20, 2023 17:30
manuel-delvillar added a commit that referenced this pull request Jun 28, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
manuel-delvillar added a commit that referenced this pull request Jul 7, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
manuel-delvillar added a commit that referenced this pull request Jul 11, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
manuel-delvillar added a commit that referenced this pull request Jul 11, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
Corpratespaz pushed a commit that referenced this pull request Jul 12, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
manuel-delvillar added a commit that referenced this pull request Jul 18, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
manuel-delvillar added a commit that referenced this pull request Jul 19, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
jchavez137 pushed a commit that referenced this pull request Jul 19, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
Corpratespaz pushed a commit that referenced this pull request Jul 25, 2023
* Working with pagination

* Add sort insensitive

* Add job code level and parents

* Delete job code

* Fix delete test

* Remove PaginatedJobCodes

* Show job codes in list

* Request all on clear search

* Delete job code by id

- Add id in ApiJobCode (ui & api)

- Call request to delete in ui

* Show toast when job code is deleted

* Add confirm message & reload on delete

* Fix broken tests

* Update open API

* Update table job codes

- Sort by code

- Remove framework name column

* Show parents

- Add pipe to show parents

* Sort by job code level

* Add validation to delete a job code

- You cannot delete a jobcode with RSDs

- You cannot delete a job code with children

* Fix create from api

* Add error messages on delete job code

* Add test new functions back end

* Update texts

* Update values for MetadataType

* Add new tests

* Fix broken tests

* Remove unused import

* Add id property for job code in open api

- Requests are without id and responses are with id.

* Delete multiple job codes

* Improve notifications on delete

* Add back to top

* Add abstract list

* Fix text on action

* Clean selected data after delete one or more job codes

* Fix table

* Disable delete single if select all is checked

* Add property to job code in open api

- Matching query is updated until we search, not while we type.

- If select all is selected and unselect one job code, select all is unchecked.

- Disable dots menu if is without actions.

* Uncheck select all if items change

* Check all selected if all are selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

5 participants