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

Kadanza DAM media connector v0.0.1 #81

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

Conversation

ivaylo-kostov-kad
Copy link

  • Add a connector with query, detail, filtering, metadata capabilities
  • Add support only for oAuth2ResourceOwnerPassword auth at this stage

* Add a connector with query, detail, filtering, metadata capabilities
* Add support only for oAuth2ResourceOwnerPassword auth at this stage
@psamusev
Copy link
Collaborator

psamusev commented Nov 19, 2024

@ivaylo-kostov-kad Would you be able to provide readme.md file with more or less similar information like in this PR example https://github.com/chili-publish/studio-connector-framework/pull/77/files#diff-d32e0ff4f8005cea104987800088b6ff736939d05f600c875db0b8f6f4501468 ? Of course if you see a potential to add more info, feel free to do it

* Describe publish, runtime options and authentication
@ivaylo-kostov-kad
Copy link
Author

@ivaylo-kostov-kad Would you be able to provide readme.md file with more or less similar information like in this PR example https://github.com/chili-publish/studio-connector-framework/pull/77/files#diff-d32e0ff4f8005cea104987800088b6ff736939d05f600c875db0b8f6f4501468 ? Of course if you see a potential to add more info, feel free to do it

@psamusev - done. Kept it simple at this stage and we'll update it later once more auth and other options are added.

src/connectors/kadanza/package.json Outdated Show resolved Hide resolved
src/connectors/kadanza/package.json Outdated Show resolved Hide resolved
src/connectors/kadanza/package.json Show resolved Hide resolved
@psamusev
Copy link
Collaborator

@ivaylo-kostov-kad despite on the fact that using oAuthAuthorizationCode is not possible in a way how you would like to have it for Studio UI integration, can you still add support of this authorization type as well as example of how to configure it, to be able for example use this approach when you work with a connector via Platform => Studio Workspace integration?

* Set author to Kadanza
* Add icon url
* Add oAuth2AuthorizationCode to supportedAuth
* Set studio-connectors and connector-cli deps versions to the ones that were used while building and testing
* Add oAuth2AuthorizationCode example in the readme
src/connectors/kadanza/readme.md Outdated Show resolved Hide resolved
src/connectors/kadanza/readme.md Outdated Show resolved Hide resolved
* Fix formatting
* Remove name from auth example, no longer used
// TODO -> handle medium/highres with conversion profiles?

case 'fullres':
case 'highres':
Copy link
Collaborator

Choose a reason for hiding this comment

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

these types seems like didn't return any image or in a wrong format. At least for 'highres' it should image type as for thumbnail and mediums (although can be with higher resolution)

Copy link
Author

Choose a reason for hiding this comment

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

@psamusev could you please add more details and specifics on the assets you tested with ? Additionally, what's an image in a wrong format?

Generally speaking, the current implementation returns the original asset and that does not guarantee that it will always be an image (this is expected as the DAM supports non-image file types as well).

Copy link
Collaborator

@psamusev psamusev Nov 22, 2024

Choose a reason for hiding this comment

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

@ivaylo-kostov-kad you can find supported formats under "Supported Formats" section https://docs.chiligrafx.com/GraFx-Developers/connectors/media-connector/media-connector-fundamentals/#download-method. In addition this PR can be used as a reference chili-publish/studio-sdk#371

In short, we're working only with JPEG, PNG or PDF (for 'fullres' and 'original') only

Copy link
Author

Choose a reason for hiding this comment

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

@psamusev OK, thanks - that's clear. We don't expect GraFx to support other formats. Our expectation is that if an asset download is requested and the original is a non-supported format, loading (or rendering) the asset in the document will fail - that's fine for us.
That's why you also see a TODO on line 197 - we will eventually decide whether we need to add custom logic for other formats when we actually start using the connector in real-life use-cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants