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 flowfile name to flows.json in settings #2951

Merged
merged 2 commits into from Apr 23, 2021

Conversation

dceejay
Copy link
Member

@dceejay dceejay commented Apr 23, 2021

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

This PR presets the flow file name to flows.json in the settings.js file - thus it will only apply to new installs unless people update their settings file. It also adds a warning if it is not set - so say that the hostname is being used.

This should make things more obvious for people moving flows from one machine to another in that the flow should just work without having to be renamed. Will also make running on some other platforms (like docker) easier as then the default settings can be used.

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run grunt to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

and warn if not set (as if anyone reads warnings)
Move setting to top of settings.js as it will be edited more often.
Default behaviour will still work
(needs translations)
@coveralls
Copy link

coveralls commented Apr 23, 2021

Coverage Status

Coverage increased (+0.007%) to 67.569% when pulling 8732e89 on fix-flowfile-name-in-settings into 719aea2 on dev.

@knolleary knolleary added the 2.0 label Apr 23, 2021
@knolleary knolleary added this to In progress in Node-RED 2.0 Planning Apr 23, 2021
…json

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
@knolleary knolleary merged commit be2e644 into dev Apr 23, 2021
Node-RED 2.0 Planning automation moved this from In progress to Done Apr 23, 2021
@knolleary knolleary deleted the fix-flowfile-name-in-settings branch April 23, 2021 15:27
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.

None yet

3 participants