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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

stepanenkoxx
Copy link
Contributor

@stepanenkoxx stepanenkoxx commented Dec 27, 2024

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?

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

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

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

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,

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.

1 participant