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

[EMA-4088 & EMA-4345]: Integrate Action Flow Import/Export functionality #190

Conversation

jetmirhalili11
Copy link
Contributor

Description

This PR integrates the functionality of import/export of action flows

Three new commands introduced

  • analyze action-flows - returns the action-flow metadata and its dependencies for a package
  • export action-flows - returns the action-flow configuration and its dependencies for a package
  • import action-flows - imports action-flows on a package

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

previously
 `... import --dryRun true`
 `... --dryRun false`
now
 `... import --dryRyn`
 `... import`
So in case you specify it, the command will get it as true and in case you do not specify it, the command will get it as false
(Same thing is applied to outputToJsonFile input field)

[EMA-4088]
somehow adding a zip with entries using the `adm-zip` constructor differs from adding the zip entries using the `addFile` method

If I use the constructor to create the zip, and then send that zip to the server I was receiving the error `invalid entry size (expected 2187395080 but got 158 bytes)`
[EMA-4088]
currently we were passing dryRun as true even if it was explicitly set as false
[EMA-4088]
Shpat-Jashari
Shpat-Jashari previously approved these changes Aug 20, 2024
Copy link
Collaborator

@promeris promeris left a comment

Choose a reason for hiding this comment

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

Can you also include unit tests for the changes? You can follow some examples we have already, and you can reach out to @LaberionAjvazi if you need any further support.

src/content-cli-analyze.ts Outdated Show resolved Hide resolved
src/content-cli-analyze.ts Show resolved Hide resolved
src/services/action-flow/action-flow-service.ts Outdated Show resolved Hide resolved
and move `metadata.jon` as a static variable
[EMA-4345]
AlbinHoxha
AlbinHoxha previously approved these changes Aug 23, 2024
DOCUMENTATION.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@promeris promeris left a comment

Choose a reason for hiding this comment

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

One more note: To publish the changes you need to manually bump the version in package.json. Would suggest bumping only patch version, until we decide to release properly with documentation

DOCUMENTATION.md Outdated Show resolved Hide resolved
promeris
promeris previously approved these changes Aug 26, 2024
jetakasabaqi
jetakasabaqi previously approved these changes Aug 26, 2024
package.json Outdated Show resolved Hide resolved
LaberionAjvazi
LaberionAjvazi previously approved these changes Aug 26, 2024
@jetmirhalili11 jetmirhalili11 merged commit ba95bbc into master Aug 27, 2024
1 check passed
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.

7 participants