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

CB-3798 poc api for visibility of properties #3311

Open
wants to merge 13 commits into
base: devel
Choose a base branch
from

Conversation

yagudin10
Copy link
Member

No description provided.

@yagudin10 yagudin10 force-pushed the CB-3798-mvp-auth-models-refactoring branch from b520932 to d6c59c9 Compare March 14, 2025 10:18
@devnaumov devnaumov marked this pull request as ready for review March 21, 2025 12:15
}) {
const translate = useTranslate();

let readonly = rest.readOnly;
Copy link
Member

Choose a reason for hiding this comment

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

It is a strange move with read-only. Let's revert it as it was from props as readOnly, then you can change it if needed (it's not props mutation)


const UNDEFINED_MAPPER_VALUE = new Array(2).fill(undefined, 1);
token('undefined', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE));
token('null', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE));
Copy link
Member

Choose a reason for hiding this comment

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

It is a bit strange that we treat null as an undefined

import 'subscript/feature/bool.js';

const UNDEFINED_MAPPER_VALUE = new Array(2).fill(undefined, 1);
token('undefined', 20, a => (a ? err() : UNDEFINED_MAPPER_VALUE));
Copy link
Member

Choose a reason for hiding this comment

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

why not use token('undefined', 20, a => a ? err() : [, undefined]) as in original example?
https://github.com/dy/subscript?tab=readme-ov-file#extending

object: Record<string, any>;
}

export function evaluate(expression: string, object: Record<string, any>) {
Copy link
Member

Choose a reason for hiding this comment

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

please fix linter

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.

4 participants