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

Feature/sc 124023/refactor-list #702

Conversation

hugomontero
Copy link
Contributor

@hugomontero hugomontero commented Dec 14, 2023

Description

This PR will refactor the LogicFunction list command in order to use a LogicFunction class with static methods.

How to Test

  • Pull down the branch: git pull && git checkout feature/sc-124023/create-logic-function-helper-to-put-file
  • Install dependencies: npm i
  • Run tests: npm run test:unit
  • Attempt to list your logic functions with the different options: npm start -- logic-function list
    • Also try it with an account without logic-functions

outcome

  • Tests should pass
  • You will see your logic functions list without any "ui" changes
  • Without logic functions you'll see a message indicating that there is no logic functions deployed on your account

Related Issues / Discussions

Story details: https://app.shortcut.com/particle/story/124023/create-logic-function-helper-to-put-file-interaction-functions-instead-of-in-cmd-class

Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA
  • Problem and solution clearly stated
  • Tests have been provided
  • Docs have been updated
  • CI is passing

@hugomontero hugomontero changed the base branch from feature/logic-function to feature/ui-minor-changes December 14, 2023 13:46
@hugomontero hugomontero marked this pull request as ready for review December 14, 2023 13:54
class LogicFunction {
constructor({ org, api = createAPI() }) {
// throw if api is not provided
this.org = org;
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 is not the final object. I'll refine it once I complete the whole refactor.

@hugomontero hugomontero changed the title Feature/sc 124023/create logic function helper to put file Feature/sc 124023/refactor-list Dec 14, 2023
Copy link
Member

@monkbroc monkbroc left a comment

Choose a reason for hiding this comment

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

Looks great!

@hugomontero hugomontero changed the base branch from feature/ui-minor-changes to feature/logic-function December 14, 2023 16:22
@hugomontero hugomontero merged commit d5b4d3a into feature/logic-function Dec 21, 2023
6 checks passed
@monkbroc monkbroc deleted the feature/sc-124023/create-logic-function-helper-to-put-file branch January 19, 2024 19:41
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.

None yet

3 participants