Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new dataset v4 controller (#1541)
* start with adding the v4 datasets controller * start the main cleanup on the dataset v4 controller * cleanup and fix some linting errors * use the versioning of datasets controller properly and finalize the initial v4 controller * do some more cleanup in the new controller * use improved regex to extract the version from the URI * refactor how we use config module and make accessGroups easily accessible * fix failing unit tests * improve dataset dto types for sdk generation * add aggregation for findById and findOne on the datasets.v4 controller * add some notes and todos on whats left * do some more cleanup and improve include filters for aggregation * more cleanup and filter refactor and validation * try to revert some package upgrades * try to revert some more package changes * test the new content property * content property final improvements * use content variable instead of funciton * cleanup * finalize all filters for find dataset endpoints * fix most of the PR review comments * fix v3 dataset controller access filters * some small improvements and leads how to solve the nested relational field access based filters * try to revert some chages that are making tests fail * fix api tests as well * fix: update GitHub Actions workflow to conditionally upload SDK artifacts and add cleanup step for non-push events (#1562) * add granular access checks for relational fields * add new environment variable variable description in github actions * feat: add public endpoints for better separation of concerns * add sort and skip in the find one complete * move the public dataset v4 endpoints in own controller * review feedback improvements * fix some review comments and add fullfacet to public endpoints as well * fix default sort value * feat: add api tests for the new controllers (#1580) <!-- Follow semantic-release guidelines for the PR title, which is used in the changelog. Title should follow the format `<type>(<scope>): <subject>`, where - Type is one of: build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|BREAKING CHANGE - Scope (optional) describes the place of the change (eg a particular milestone) and is usually omitted - subject should be a non-capitalized one-line description in present imperative tense and not ending with a period See https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines for more details. --> ## Description This is PR that adds unit and api tests for the dataset v4 controllers. ## Motivation After adding the new controllers we need to test all this refactor and also the public endpoints and access to the data. ## Fixes * https://jira.ess.eu/browse/SWAP-4366 ## Changes: <!-- Please provide a list of the changes implemented by this PR --> * adding tests for dataset v4 controllers ## Tests included - [x] Included for each change/fix? - [x] Passing? <!-- Merge will not be approved unless tests pass --> ## Documentation - [x] swagger documentation updated (required for API changes) - [ ] official documentation updated ### official documentation info <!-- If you have updated the official documentation, please provide PR # and URL of the updated pages --> * revert some changes in package-lock * fix final review comments and suggestions --------- Co-authored-by: Jay <[email protected]> Co-authored-by: Max Novelli <[email protected]>
- Loading branch information