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

Add getEntriesData endpoint #227

Merged
merged 24 commits into from
Jan 17, 2025

Conversation

stepanenkoxx
Copy link
Contributor

@stepanenkoxx stepanenkoxx commented Dec 27, 2024

No description provided.

import {ACCESS_DENIED_ERROR_CODE, NOT_FOUND_ERROR_CODE} from './constants';

export type GetEntriesDataResponseItemResult = {
scope: Nullable<EntryScope>;
Copy link
Contributor Author

@stepanenkoxx stepanenkoxx Dec 28, 2024

Choose a reason for hiding this comment

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

We have nullable type in our Entry model
Can it really be null?

Copy link
Collaborator

Choose a reason for hiding this comment

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

it can be null in db schema.

@@ -11,10 +11,10 @@ export interface DLSConstructor {
checkPermissionsArgs: MT.CheckPermissionDlsConfig,
) => Promise<any>;

checkBulkPermission(
checkBulkPermission<E extends object>(
Copy link
Contributor Author

@stepanenkoxx stepanenkoxx Dec 28, 2024

Choose a reason for hiding this comment

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

There should probably be {entryId: string} not object
But we have some usages where entity type is {entryId?: string}

@stepanenkoxx stepanenkoxx marked this pull request as ready for review December 28, 2024 13:34
checkWorkbookPermissionById({
ctx,
workbookId,
permission: WorkbookPermission.View,
Copy link
Contributor Author

@stepanenkoxx stepanenkoxx Dec 28, 2024

Choose a reason for hiding this comment

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

Or it must be like this?

       permission: isEnabledFeature(ctx, Feature.UseLimitedView)
                ? WorkbookPermission.LimitedView
                : WorkbookPermission.View,

upd. added flag check

@stepanenkoxx stepanenkoxx marked this pull request as draft January 10, 2025 14:52
@stepanenkoxx stepanenkoxx marked this pull request as ready for review January 13, 2025 12:15
src/components/response-presenter.ts Show resolved Hide resolved
src/controllers/entries/getEntriesData/constants.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/index.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/index.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/index.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/index.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/index.ts Outdated Show resolved Hide resolved
src/controllers/entries/getEntriesData/response-model.ts Outdated Show resolved Hide resolved
@stepanenkoxx stepanenkoxx marked this pull request as draft January 14, 2025 08:12
@stepanenkoxx stepanenkoxx marked this pull request as ready for review January 16, 2025 08:22
@stepanenkoxx stepanenkoxx merged commit fe0d96a into main Jan 17, 2025
5 checks passed
@stepanenkoxx stepanenkoxx deleted the CHARTS-10806-add-get-entries-data-endpoint branch January 17, 2025 18:07
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