Skip to content

Move DB rules deploy to CLI - #465

Merged
mbleigh merged 2 commits into
masterfrom
mb-db-rules
Sep 28, 2017
Merged

mbleigh merged 2 commits into
masterfrom
mb-db-rules

Conversation

@mbleigh

@mbleigh mbleigh commented Sep 19, 2017

Copy link
Copy Markdown
Contributor

Similar to #461, this extracts logic formerly done by the backend server into the CLI. In addition, this makes use of a dry run to validate syntax before releasing DB rules, so syntax errors will be caught earlier.

This will also fix #308

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 57.153% when pulling 0a009ce on mb-db-rules into a968600 on master.

1 similar comment
@coveralls

coveralls commented Sep 19, 2017 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 57.153% when pulling 0a009ce on mb-db-rules into a968600 on master.

@laurenzlong laurenzlong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM with a question.

Comment thread lib/config.js
@@ -120,13 +118,8 @@ Config.prototype._parseFile = function(target, filePath) {
if (target === 'database') {
this.notes.databaseRules = 'json';
} else if (target === 'database.rules') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So is "database.rules" only supported for JSON not bolt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's actually a good question -- I think bolt compatibility may have ended up broken a while back when we originally did the rulesString changes. I'll file a followup bug to take a look at Bolt specifically soon.

@laurenzlong laurenzlong assigned mbleigh and unassigned laurenzlong Sep 28, 2017
@mbleigh
mbleigh merged commit 43ba75f into master Sep 28, 2017
@mbleigh
mbleigh deleted the mb-db-rules branch September 28, 2017 18:39
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.

Support multi-line strings in Database rules JSON

3 participants