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: Improve generateFiles command to create qualified files #147

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

Merkur39
Copy link
Member

@Merkur39 Merkur39 commented Mar 1, 2024

En l'état, les changements apportés par cette PR conserve le fonctionnement de la commande generateFiles mais vont aussi lui permettre de générer des fichiers qualifiés (avec les qualifications existantes sur cozy-client)

Info importante, certaines apps comme MesPapiers fetch les fichiers qualifiés mais qui doivent aussi avoir la prop cozyMetadata.createdByApp.
La création via ACH retourne bien des fichiers qualifiés mais sans cette prop, pour l'avoir il suffit de générer un token d'app/connecteur (le token de l'app où vous souhaitez voir les fichiers semble bien) et de le passer à ACH via l'option -t.

@Merkur39 Merkur39 force-pushed the feat/ver-331 branch 3 times, most recently from 0faff36 to 25188f7 Compare March 8, 2024 16:20
@Merkur39 Merkur39 marked this pull request as ready for review March 8, 2024 16:21
@Merkur39 Merkur39 changed the title feat: Added a script to create qualified files with reference contacts WIP [skip ci] feat: Added a script to create qualified files with reference contacts Mar 8, 2024
@Merkur39 Merkur39 changed the title feat: Added a script to create qualified files with reference contacts feat: Improve generateFiles command to create qualified files Mar 8, 2024
@Merkur39 Merkur39 force-pushed the feat/ver-331 branch 5 times, most recently from ff01d65 to ebe283f Compare March 8, 2024 19:32
cli.js Outdated Show resolved Hide resolved
cli.js Show resolved Hide resolved
@zatteo
Copy link
Contributor

zatteo commented Mar 11, 2024

Thank you a lot!

BREACKING CHANGE: The `path` argument is replaced by `dirId`, and goes to second position.

Example to generate 2 files at the root of your Drive:
Before
```
ACH generateFiles <folderPath> <nbOfFile>
```

Now
```
ACH generateFiles <nbOfFile> <folderId>
```
@Merkur39 Merkur39 merged commit 4594ea2 into master Mar 12, 2024
2 checks passed
@Merkur39 Merkur39 deleted the feat/ver-331 branch March 12, 2024 07:27
@cozy-bot
Copy link

🎉 This PR is included in version 1.53.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants