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

Merge main into next #1528

Merged
merged 6 commits into from
Dec 22, 2023
Merged

Merge main into next #1528

merged 6 commits into from
Dec 22, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 21, 2023

This is an automated pull request to merge changes from main into next. It has merge conflicts. To resolve conflicts, check out the branch merge-main-into-next locally, make any necessary changes to conflicting files, and commit and publish your changes.

@auto-assign auto-assign bot requested a review from johnnyomair December 21, 2023 13:12
Make all DAM license fields optional if `LicenseType` is `ROYALTY_FREE`
even if `requireLicense` is true in `DamConfig`.

Closes COM-250
@github-actions github-actions bot changed the title Merge main into next [Conflicts] Merge main into next Dec 21, 2023
@github-actions github-actions bot force-pushed the merge-main-into-next branch from 1ece08b to d297766 Compare December 21, 2023 13:22
---------

Co-authored-by: Ricky James Smith <jamesricky@me.com>
Co-authored-by: Thomas Dax <thomas.dax@vivid-planet.com>
Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
@github-actions github-actions bot force-pushed the merge-main-into-next branch from d297766 to 1be8200 Compare December 21, 2023 13:57
thomasdax98 and others added 2 commits December 21, 2023 17:23
## Problem:

Our fixtures are currently broken. You always get this error when
executing them:

<img width="573" alt="Bildschirmfoto 2023-12-14 um 17 02 52"
src="https://github.com/vivid-planet/comet/assets/13380047/ce7eed3c-5834-4618-8ced-ec93875c71ca">


The problem is that a required `userGroup` field is added to
`PageTreeNode` in Demo:


https://github.com/vivid-planet/comet/blob/99e0c57cc8ef542befd74d5b8ad9cf71058570e1/demo/api/src/page-tree/entities/page-tree-node.entity.ts#L26-L28


https://github.com/vivid-planet/comet/blob/1c098e4d0f23946c0fd543856c8f0aa897b83b82/demo/api/src/page-tree/dto/page-tree-node.input.ts#L7-L12

We don't provide a userGroup in the fixtures and it didn't strike
because the typing of `PageTreeService.createNode()` is wrong. The input
is typed with `PageTreeNodeBaseCreateInput`


https://github.com/vivid-planet/comet/blob/b73eb4c34c70c694fc8b267ce330af5959c50e7b/packages/api/cms-api/src/page-tree/page-tree.service.ts#L33

but the actual input type can be defined in the application and is
passed to the resolver via a factory:


https://github.com/vivid-planet/comet/blob/46bced34cbb9ec02de6dd462bd9111a6be7898b7/packages/api/cms-api/src/page-tree/createPageTreeResolver.ts#L35

### -> So actually the typing in the `PageTreeService` is wrong and we
need to fix that

I now circumvented this by using ts-ignore. 
But I think we need a solution to get the typing right. I'm however not
sure what the best way to do this is.
@github-actions github-actions bot force-pushed the merge-main-into-next branch from 1be8200 to 0880ca9 Compare December 21, 2023 16:23
@thomasdax98 thomasdax98 changed the title [Conflicts] Merge main into next Merge main into next Dec 22, 2023
@thomasdax98 thomasdax98 requested review from thomasdax98 and removed request for johnnyomair December 22, 2023 10:04
@thomasdax98 thomasdax98 merged commit a37ebde into next Dec 22, 2023
10 checks passed
@thomasdax98 thomasdax98 deleted the merge-main-into-next branch December 22, 2023 10:13
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