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

feat: Add config option to ignore keys #82

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

Bilka2
Copy link
Contributor

@Bilka2 Bilka2 commented May 21, 2024

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.

@Bilka2 Bilka2 requested a review from a team as a code owner May 21, 2024 14:56
@@ -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"]
Copy link
Contributor Author

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"
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@Varpuspaavi Varpuspaavi merged commit 657b9f3 into phrase:master Jun 14, 2024
2 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 14, 2024
# [3.1.0](v3.0.1...v3.1.0) (2024-06-14)

### Features

* Add config option to ignore keys ([#82](#82)) ([657b9f3](657b9f3))
@Varpuspaavi
Copy link
Contributor

@Bilka2 Thank you for your contribution and sorry it again took some time to get to here 🙏 Really appreciate your contributions!

@Bilka2
Copy link
Contributor Author

Bilka2 commented Jun 27, 2024

Thank you very much for merging this!

@Bilka2 Bilka2 deleted the ignored-keys branch June 27, 2024 20:36
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.

Allow to exclude certain keys from getting resolved
3 participants