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 ics filter params #2647

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

add ics filter params #2647

wants to merge 25 commits into from

Conversation

YinHang2515
Copy link
Contributor

@YinHang2515 YinHang2515 commented Dec 4, 2024

For more information about how to contribute to this repo, visit this page.

Description

re-add otherAppState and Store e2e tests & add store size interface & add ics filter params

Main changes in the PR:

  1. e2e-test-data: otherAppState.json & store.json
  2. store.ts

Validation

Validation performed:

  1. use store.json e2e test file

Unit Tests added:

Unit tests are required for all changes. If no unit tests were added as part of this change, please explain why they aren't necessary.

No. No need for this change

End-to-end tests added:

Yes

Additional Requirements

Change file added:

Yes

@YinHang2515 YinHang2515 requested a review from a team as a code owner December 4, 2024 08:29
@YinHang2515
Copy link
Contributor Author

pending until hub-sdk pr checked in

Copy link
Contributor

@TrevorJoelHarris TrevorJoelHarris left a comment

Choose a reason for hiding this comment

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

Please validate that dialog sizes aren't too small. It will never be valid for a developer to pass up a size <= 0 for either height or width.

@YinHang2515 YinHang2515 changed the title re-add otherAppState and Store e2e tests & add store size interface re-enable e2e tests & add store size interface & add filter params for ics Dec 18, 2024
@YinHang2515 YinHang2515 changed the title re-enable e2e tests & add store size interface & add filter params for ics add ics filter params Jan 6, 2025
Copy link
Contributor

@TrevorJoelHarris TrevorJoelHarris left a comment

Choose a reason for hiding this comment

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

You've added some new functionality to this since I last reviewed it, so left some updated requests around typing.

appCapability?: string;

/**
* The application meta capabilities (e.g., ["copilotPlugins", "copilotExtensions"]).
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's correct that this can be undefined, this comment should outline what it means for there to be no array specified.

* @internal
* Limited to Microsoft-internal use
*/
export const errorMissingCollectionId =
'No Collection Id present, but CollectionId needed to open a store specific to a collection';
export async function openInContextStore(params: OpenInContextStoreParams): Promise<void> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a private function I don't feel strongly about it, but right now every parameter in OpenInContextStoreParams is optional. To me, that means it would make sense if params was optional here as well. That way a caller who wanted all of the default values could write code like this:

await openInContextStore();

instead of this:

await openInContextStore({});

Something to consider.

Copy link
Contributor

@TrevorJoelHarris TrevorJoelHarris left a comment

Choose a reason for hiding this comment

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

Couple very small comments/questions about optional parameters but looks mostly good

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