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(stack-client): Get Icon Url uses preloaded url when oAuth not needed #1134

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

trollepierre
Copy link
Contributor

@trollepierre trollepierre commented Feb 25, 2022

Need upgrade in cozy-ui as well + test + working without breaking change

Capture d’écran 2022-02-25 à 16 21 44

cozy/cozy-ui#2064

defaultOpts.appData = 'appData-that-is-a-string'
const url = await getIconURL(stackClient, defaultOpts)
expect(url).toEqual(
'http://cozy.tools:8080/registry/appData-that-is-a-string/icon'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Crash-- : I wonder if this appData that can be string is possible

Copy link
Contributor

Choose a reason for hiding this comment

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

Nein. I don't think so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this code + test have been removed

} else {
try {
const { host: domain, protocol } = new URL(stackClient.uri)
return loadIcon(appData, domain, protocol)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

appData now mandatory to be able to be executed simply => https://github.com/cozy/cozy-ui/pull/2064/files

@trollepierre trollepierre merged commit 34611df into master Mar 1, 2022
@trollepierre trollepierre deleted the getIconUrl branch March 1, 2022 15:40
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