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

feat(server):add module functions for assistant service #8342

Merged
merged 22 commits into from May 1, 2024

Conversation

yuval-hazaz
Copy link
Member

@yuval-hazaz yuval-hazaz commented Apr 29, 2024

Close: #8306

PR Details

PR Checklist

  • Tests for the changes have been added
  • npm test doesn't throw any error

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Copy link

nx-cloud bot commented Apr 29, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit dae8f5f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@@ -227,7 +228,7 @@ export class ModuleDtoService extends BlockTypeService<
...args,
data: {
...args.data,
properties: [],
properties: (args.properties as unknown as JsonArray) ?? [],
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ pay attention to this casting as it will hide potential type mismatches.
Type casting should be avoided in typescript projects

Copy link
Member Author

Choose a reason for hiding this comment

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

that is true.
the BlockCreateInput uses a specific implementation of [key: string]: JsonValue; which causes a type conflict here.
If you think you have a quick workaround, please suggest one, otherwise it will not make sense to make a big change to fix it now

Copy link
Member Author

Choose a reason for hiding this comment

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

@overbit please note that because of the [key: string]: JsonValue; BlockCreateInput anyway accepts all types, and the type validation is done on the previous layer per specific block type

@yuval-hazaz yuval-hazaz merged commit fe5e734 into feat/jovu-plugins May 1, 2024
2 checks passed
@yuval-hazaz yuval-hazaz deleted the feat/jovu-api branch May 1, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants