Skip to content

OCV: add web config flag client side#10386

Merged
srietkerk merged 3 commits intomasterfrom
srietkerk/ocv-limiting
Feb 14, 2025
Merged

OCV: add web config flag client side#10386
srietkerk merged 3 commits intomasterfrom
srietkerk/ocv-limiting

Conversation

@srietkerk
Copy link
Copy Markdown
Contributor

This makes it so we can only get feedback for targets that we serve.

@srietkerk srietkerk requested a review from a team February 13, 2025 23:10
Copy link
Copy Markdown
Contributor

@thsparks thsparks left a comment

Choose a reason for hiding this comment

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

For my own education, is the idea that this is now a field we control from the backend?

Change itself looks good! (one nit)

pxtlib/main.ts Outdated
teachertoolUrl?: string; // "/beta---eval"
isStatic?: boolean;
verprefix?: string; // "v1"
ocvEnabled: boolean;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think if you define this as an optional field (ocvEnabled?) then you won't need to go in and add it to all those other files (like test.spec.ts)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@srietkerk srietkerk merged commit 1747bd9 into master Feb 14, 2025
6 checks passed
@srietkerk srietkerk deleted the srietkerk/ocv-limiting branch February 14, 2025 22:29
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.

3 participants