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

Implemented createRulesFileFromSource() and createRuleset() APIs #607

Merged
merged 9 commits into from
Aug 1, 2019

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Jul 29, 2019

In addition to the above 2 new methods, I'm also refactoring the implementation a bit based on the feedback received in #604

  1. SecurityRulesApiClient now closely resembles the REST API.
  • getRuleset()
  • createRuleset()
  • getRelease()
  1. SecurityRules class is now mostly a thin wrapper around SecurityRulesApiClient.

@ryanpbrewster
Copy link
Contributor

I do not think the link in your PR description is correct, that issue does not seem relevant to this PR.

@hiranya911
Copy link
Contributor Author

Thanks @ryanpbrewster. Made the suggested changes and updated the issue description.

@ryanpbrewster ryanpbrewster removed their assignment Jul 29, 2019
Copy link

@rachelmyers rachelmyers left a comment

Choose a reason for hiding this comment

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

Left some comments and questions in line. LGTM. :shipit:

readonly files: RulesFile[];
};
}

Choose a reason for hiding this comment

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

Are you removing these in favor of defining them in security-rules/security-rules-api-client.ts because they are set by the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. They are being moved to the api-client module, which in this case is treated as an internal implementation module.

@hiranya911 hiranya911 assigned hiranya911 and unassigned rachelmyers Aug 1, 2019
@hiranya911 hiranya911 merged commit 471aa49 into rules Aug 1, 2019
@hiranya911 hiranya911 deleted the hkj-rules-2 branch August 1, 2019 21:54
hiranya911 added a commit that referenced this pull request Sep 18, 2019
* Implementing the Firebase Security Rules API (#604)

* Implementing the Firebase Security Rules API

* More argument validation and assertions

* Cleaning up the rules impl

* Internal API renamed

* Fixing a typo in a comment

* Implemented createRulesFileFromSource() and createRuleset() APIs (#607)

* Implementing the Firebase Security Rules API

* More argument validation and assertions

* Adding the rest of the CRUD operations for rulesets

* Cleaning up the rules impl

* Cleaned up tests

* Adding some missing comments

* Removing support for multiple rules files in create()

* Implemented the deleteRuleset() API (#609)

* Added deleteRuleset API

* Merged with source

* Implemented the API for releasing rulesets (#610)

* Implemented the API for releasing rulesets

* Removed createRelease logic

* Updated comment

* Added the getStorageRuleset() API (#613)

* Implemented the API for releasing rulesets

* Removed createRelease logic

* Added getStorageRules() API

* Removed some redundant tests

* Implementing the remaining releaseRuleset APIs (#616)

* Implemented the listRulesetMetadata() API (#622)

* Adding the rules API to the public API surface (#625)

* Added rules API to the public admin namespace

* Updated docs

* Addressing comments regarding the d.ts file

* Updated App typings

* Rules integration tests (#633)

* Rules integration tests

* Refactored by adding some helper methods

* Cleaned up some conditionals

* Added verification for deleteRuleset test

* Renamed tempRulesets

* Handling ruleset limit exceeded error (#636)

* Fixing alignment of an annotation

* Updated comments
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.

3 participants