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

TDK housekeeping stabilization (do not merge before #50) #52

Merged
merged 19 commits into from
Apr 18, 2023

Conversation

fschade
Copy link
Collaborator

@fschade fschade commented Apr 16, 2023

Description

the TDK developments happened at the same moment as the test development and it was not 100% clear how to structure and organize (naming, hierarchies, package grouping, ...) the DK during the development cycle.

We now have the koko tests in place and my understanding is good enough to structure the ZDK package.
This Pr will contain those improvements and will contain:

  • clean endpoints
  • clean client
  • clean utilities
  • clean auth
  • introduce vitest and add basic set of unit tests

this PR is a important part for 2.0.0-rc.4

@fschade fschade marked this pull request as draft April 16, 2023 20:06
@fschade fschade marked this pull request as ready for review April 17, 2023 11:40
openIDConnect: 'openIDConnect',
basicAuth: 'basicAuth',
} as const;
kopano: 'kopano',
Copy link
Member

Choose a reason for hiding this comment

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

maybe keep openIDConnect

- add new 070-user-group-search-and-share test and docs from the koko test paper
- add new groups api and add those to the tdk client
- add several es-lint rules to the default config and apply those
- add new 080-create-space test and docs based on the koko test paper
- add client version guard to protect the test from unsupported client versions
- rename the api tdk package to endpoints, to not have a api.api route which is needed for ocis
- add eslint rule to have linebreaks between class members
- stop using k6 response json method
- add client endpoints for application
- add client endpoints for drive
- add client endpoints for role
- fix static space creation count
- add new 090-add-remove-user-share test and docs based on the koko test paper
- add new share delete client endpoint
- add koko 030-search-for-filename test and docs
- introduce versionSupported helper and use it instead of plain conditions
- add tag search
- use og jsonpath instead of jsonpath-plus and adjust related helpers
- introduce tag client endpoints
- introduce systemtags and systemtags_relations endpoints
- introduce libregraph org tags endpoints
this enhancement cleans up the tdk/client endpoint structure and introduces a naming schema which applies to all compatible clouds.

beside the client refactoring it updates all related tests to use that changed api.
cleanup, rename and structure available and used utils
integrate vitest, make it possible to run tests on monorepo level via turbo and provide unit tests for the utils package
mote Platform const out of the client to prevent circular imports
cleanup auth adapters and rename the oidc adapter to kopano
remove not needed semicolons

import { Authenticator, Token } from './auth'

export class Kopano implements Authenticator {
Copy link
Member

Choose a reason for hiding this comment

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

well, or stick withOpenIDConnect with config options for the login url, username and passwond params ... ? that might be enough for a generic openidconnect auth

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wont't work :( i can have a look in the next oidc pr

cleanup previous pr rebase
@fschade fschade merged commit 314b41b into main Apr 18, 2023
@delete-merged-branch delete-merged-branch bot deleted the cleanup-ocis-koko branch April 18, 2023 08:46
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