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

fix: Add zod schemas for app metadata living in config.json #18466

Closed
wants to merge 4 commits into from

Conversation

AritraDey-Dev
Copy link

@AritraDey-Dev AritraDey-Dev commented Jan 6, 2025

Fixes #14808

Add zod schemas for app metadata in config.json.

  • Import appDataSchemas and appKeysSchemas from apps.schemas.generated in packages/app-store/appStoreMetaData.ts.
  • Use appDataSchemas and appKeysSchemas to parse the metadata in packages/app-store/appStoreMetaData.ts.
  • Update the appStoreMetadata object to use the parsed metadata in packages/app-store/appStoreMetaData.ts.
  • Import appDataSchemas and appKeysSchemas from apps.schemas.generated in packages/app-store/getNormalizedAppMetadata.ts.
  • Use appDataSchemas and appKeysSchemas to parse the metadata in packages/app-store/getNormalizedAppMetadata.ts.
  • Update the getNormalizedAppMetadata function to use the parsed metadata in packages/app-store/getNormalizedAppMetadata.ts.

For more details, open the Copilot Workspace session.

Fixes calcom#14808

Add zod schemas for app metadata in `config.json`.

* Import `appDataSchemas` and `appKeysSchemas` from `apps.schemas.generated` in `packages/app-store/appStoreMetaData.ts`.
* Use `appDataSchemas` and `appKeysSchemas` to parse the metadata in `packages/app-store/appStoreMetaData.ts`.
* Update the `appStoreMetadata` object to use the parsed metadata in `packages/app-store/appStoreMetaData.ts`.
* Import `appDataSchemas` and `appKeysSchemas` from `apps.schemas.generated` in `packages/app-store/getNormalizedAppMetadata.ts`.
* Use `appDataSchemas` and `appKeysSchemas` to parse the metadata in `packages/app-store/getNormalizedAppMetadata.ts`.
* Update the `getNormalizedAppMetadata` function to use the parsed metadata in `packages/app-store/getNormalizedAppMetadata.ts`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/calcom/cal.com/issues/14808?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Jan 6, 2025

@AritraDey-Dev is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 6, 2025
@graphite-app graphite-app bot requested a review from a team January 6, 2025 08:38
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot added Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work ✅ good first issue Good for newcomers ✨ feature New feature or request labels Jan 6, 2025
@dosubot dosubot bot added app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🐛 bug Something isn't working labels Jan 6, 2025
Copy link

graphite-app bot commented Jan 6, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (01/06/25)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (01/06/25)

1 label was added to this PR based on Keith Williams's automation.

Copy link
Contributor

@Praashh Praashh left a comment

Choose a reason for hiding this comment

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

Hey @AritraDey-Dev , unit tests are failing, can you please fix this 🙏

@anikdhabal
Copy link
Contributor

anikdhabal commented Jan 8, 2025

Don't get your solution.

@anikdhabal anikdhabal closed this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🐛 bug Something isn't working community Created by Linear-GitHub Sync ✨ feature New feature or request ✅ good first issue Good for newcomers Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3584] Add zod schemas for app metadata living in config.json
4 participants