-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: Add config option to ignore keys #82
Conversation
@@ -9,6 +9,10 @@ | |||
config.account_id = "<%= options[:account_id] %>" | |||
config.datacenter = "eu" | |||
|
|||
# Configure an array of key names that should not be handled | |||
# by the In-Context-Editor. | |||
# config.ignored_keys = ["number.*", "foo.bar"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out so it doesn't alter current behavior.
@@ -1,3 +1,3 @@ | |||
module PhraseApp | |||
VERSION = "2.1.0" | |||
VERSION = "3.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this isn't getting incremented during the release process.
@@ -3,8 +3,6 @@ | |||
module PhraseApp | |||
module InContextEditor | |||
class BackendService | |||
attr_accessor :blacklisted_keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yet another attr_acessor
that did nothing.
# [3.1.0](v3.0.1...v3.1.0) (2024-06-14) ### Features * Add config option to ignore keys ([#82](#82)) ([657b9f3](657b9f3))
@Bilka2 Thank you for your contribution and sorry it again took some time to get to here 🙏 Really appreciate your contributions! |
Thank you very much for merging this! |
Resolves #80.
Add
config.ignored_keys
to exclude keys from being handled by the ICE.Implementation is inspired by pre 2.0 versions of this gem, with simplified code.