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

Extract utility functions #150

Merged
merged 1 commit into from
May 16, 2022

Conversation

vraravam
Copy link
Contributor

@vraravam vraravam commented May 15, 2022

Pre-flight Checklist

  1. Please remember that if you are logging a bug for some service that has stopped working or is working incorrectly, please log the bug here
  2. If you are requesting support for a new service in Ferdium, please log it here
  3. Please remember to read the self-help documentation - in case it helps you unblock yourself for issues related to older versions of recipes that were installed on your machine. (These will get automatically upgraded when you upgrade to the newer versions of Ferdium, but to get new recipes between Ferdium releases, this documentation is quite useful.)
  4. Please ensure you've completed all of the following.

Description of Change

Extracted common utility functions related to JSON parsing
Will wait for #149 to be merged, and then put this up for review.

Motivation and Context

Remove code duplication

Screenshots

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (npm run prepare-code)
  • npm test passes
  • I tested/previewed my changes locally

Release Notes

@vraravam vraravam self-assigned this May 15, 2022
@vraravam vraravam marked this pull request as draft May 15, 2022 03:17
@vraravam vraravam force-pushed the extract-utility-functions branch 4 times, most recently from 85a350c to 34a12e1 Compare May 15, 2022 20:14
@vraravam vraravam marked this pull request as ready for review May 15, 2022 20:14
Copy link
Member

@SpecialAro SpecialAro left a comment

Choose a reason for hiding this comment

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

Overall LGTM!

if (
workspace.services &&
typeof workspace.services === 'string' &&
workspace.services.length > 0
Copy link
Member

Choose a reason for hiding this comment

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

This is no longer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks - must have slipped my sight. will fix in new commit

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's already handled in the convertJSON method

if (
workspace.data &&
typeof workspace.data === 'string' &&
workspace.data.length > 0
Copy link
Member

Choose a reason for hiding this comment

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

Same here (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's already handled in the convertJSON method

if (
service.settings &&
typeof service.settings === 'string' &&
service.settings.length > 0
Copy link
Member

Choose a reason for hiding this comment

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

And here (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's already handled in the convertJSON method

@nathanaelhoun nathanaelhoun removed their request for review May 15, 2022 21:37
@vraravam vraravam merged commit 082b64b into ferdium:develop May 16, 2022
@vraravam vraravam deleted the extract-utility-functions branch May 16, 2022 00:05
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