Skip to content

Commit

Permalink
refactor: removed getting client test data from release (#DEV-3541) (#…
Browse files Browse the repository at this point in the history
…637)

* client test data

* adds rxjs 6.6.7 package

* marked admin endpoints as deprecated
  • Loading branch information
irmastnt committed Apr 30, 2024
1 parent c13c4a7 commit 59e353d
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 53 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ jobs:
sudo npm install --global @bazel/bazelisk
- name: Install dependencies
run: make npm-install
- name: Get api client test data from knora-api (makefile variant)
run: make get-test-data-from-release
- name: Prepare test data
run: make prepare-test-data
- name: Run unit tests
Expand Down
Binary file added client-test-data.zip
Binary file not shown.
186 changes: 147 additions & 39 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"phantomjs-prebuilt": "^2.1.16",
"tslint": "^6.1.0",
"typedoc": "^0.23.15",
"typescript": "4.8.3"
"typescript": "4.8.3",
"rxjs": "^6.6.7"
},
"dependencies": {
"@babel/helper-compilation-targets": "^7.16.7",
Expand Down
8 changes: 4 additions & 4 deletions src/api/admin/admin-endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { KnoraApiConfig } from "../../knora-api-config";
import { Endpoint } from "../endpoint";

import { UsersEndpointAdmin } from "./users/users-endpoint-admin";
import { GroupsEndpointAdmin } from "./groups/groups-endpoint-admin";
import { ProjectsEndpointAdmin } from "./projects/projects-endpoint-admin";
import { PermissionsEndpointAdmin } from "./permissions/permissions-endpoint-admin";
import { ListsEndpointAdmin } from "./lists/lists-endpoint-admin";
import { PermissionsEndpointAdmin } from "./permissions/permissions-endpoint-admin";
import { ProjectsEndpointAdmin } from "./projects/projects-endpoint-admin";
import { UsersEndpointAdmin } from "./users/users-endpoint-admin";


/**
* A client API for administering Knora.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class AdminEndpoint extends Endpoint {
Expand Down
2 changes: 1 addition & 1 deletion src/api/admin/groups/groups-endpoint-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { UpdateGroupRequest } from "../../../models/admin/update-group-request";

/**
* An endpoint for working with Knora groups.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class GroupsEndpointAdmin extends Endpoint {
Expand Down
3 changes: 1 addition & 2 deletions src/api/admin/lists/lists-endpoint-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { DeleteListResponse } from "../../../models/admin/delete-list-response";
import { ListChildNodeResponse } from "../../../models/admin/list-child-node-response";
import { ListInfoResponse } from "../../../models/admin/list-info-response";
import { ListNodeInfoResponse } from "../../../models/admin/list-node-info-response";
import { ListNodeResponse } from "../../../models/admin/list-node-response";
import { ListResponse } from "../../../models/admin/list-response";
import { ListsResponse } from "../../../models/admin/lists-response";
import { RepositionChildNodeRequest } from "../../../models/admin/reposition-child-node-request";
Expand All @@ -25,7 +24,7 @@ import { Endpoint } from "../../endpoint";

/**
* An endpoint for working with Knora lists.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class ListsEndpointAdmin extends Endpoint {
Expand Down
2 changes: 1 addition & 1 deletion src/api/admin/permissions/permissions-endpoint-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Endpoint } from "../../endpoint";

/**
* An endpoint for working with Knora permissions.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class PermissionsEndpointAdmin extends Endpoint {
Expand Down
2 changes: 1 addition & 1 deletion src/api/admin/projects/projects-endpoint-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { UpdateProjectRequest } from "../../../models/admin/update-project-reque

/**
* An endpoint for working with Knora projects.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class ProjectsEndpointAdmin extends Endpoint {
Expand Down
3 changes: 1 addition & 2 deletions src/api/admin/users/users-endpoint-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import { User } from "../../../models/admin/user";
import { UserResponse } from "../../../models/admin/user-response";
import { UsersResponse } from "../../../models/admin/users-response";


/**
* An endpoint for working with Knora users.
*
* @deprecated Use open API docs instead
* @category Endpoint Admin
*/
export class UsersEndpointAdmin extends Endpoint {
Expand Down

0 comments on commit 59e353d

Please sign in to comment.