graphiti 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd25841a045956cda400bc9fd72f0eaac514cd7b0c393145607383bdfb4f9628
4
- data.tar.gz: bb457041c8ed31b7f527614cf241fb43e626f8abc465d2ee5fca851081be94c1
3
+ metadata.gz: 873ef782c20fd4c861ccc48b7d1be6ff79943a22a89bc823d1c929cd64a05e13
4
+ data.tar.gz: 32aab62c054dfc0cf73647fb018adf40efec5862bebddc727e16797857b2987b
5
5
  SHA512:
6
- metadata.gz: cedef768a22bd9a6058a1d0c527c60c34478b6aa3091c31c8524a1feb7dad33bd5912c4beddf5d8b6f49f964a1ff32b1eff8c778cc12a55a3e420c8914127923
7
- data.tar.gz: 8638ac3f7ea8702df0ac0f475cfd5c820d477921e5a4af85b6dd5b845a507d3a81914ffde73ecfeaa86fc4a4cf992044399ae8482d0339f0dc403fef0f301122
6
+ metadata.gz: fac4855f042d4214bdc196609776efb739de5676d8c464dcffaeeda6f233639609bfb3c450608b394c81aee6470d04013a4989cead074b61a71cc645f3a9eb3e
7
+ data.tar.gz: 8119467fe8a1da3a711f7b597a19f2540f7170d2fa2fe6116d19086d029f8713fdeb976e090aea8a5662d54e7af1df576dc9f29b8c138c3367ba337fc2a7e02c
@@ -12,8 +12,6 @@ on:
12
12
  - 'docs/**'
13
13
  - 'website/**'
14
14
  - '.github/workflows/docs.yml'
15
- release:
16
- types: [published]
17
15
  workflow_dispatch: {}
18
16
 
19
17
  # One static group: deploys from different branches force-push the same
@@ -36,3 +36,8 @@ jobs:
36
36
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
37
  GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
38
38
  run: npx semantic-release
39
+ # A release published with GITHUB_TOKEN never fires other workflows' release triggers, so the docs are rebuilt by hand.
40
+ - name: Rebuild docs with the new version label
41
+ env:
42
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
+ run: gh workflow run docs.yml --ref "$GITHUB_REF_NAME"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [2.1.1](https://github.com/graphiti-api/graphiti/compare/v2.1.0...v2.1.1) (2026-09-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * a filter you declare by hand always beats the one an attribute generates ([955875b](https://github.com/graphiti-api/graphiti/commit/955875b2a28ef67980e240399deb70620f44b935))
9
+
3
10
  # [2.1.0](https://github.com/graphiti-api/graphiti/compare/v2.0.2...v2.1.0) (2026-09-04)
4
11
 
5
12
 
@@ -16,6 +16,7 @@ module Graphiti
16
16
 
17
17
  aliases = [name, opts[:aliases]].flatten.compact
18
18
  operators = FilterOperators.build(self, att[:type], opts, &blk)
19
+ operators = operators.merge(custom_operators(name)) if opts[:via_attribute_dsl]
19
20
 
20
21
  case Graphiti::Types[att[:type]][:canonical_name]
21
22
  when :boolean
@@ -253,6 +254,12 @@ module Graphiti
253
254
  end
254
255
  private :relationship_option
255
256
 
257
+ # Declaring an attribute regenerates its filter, which must not silently outrank a filter declared by hand.
258
+ def custom_operators(name)
259
+ (config[:filters][name]&.[](:operators) || {}).compact
260
+ end
261
+ private :custom_operators
262
+
256
263
  def blanks_for(name, opts)
257
264
  if opts.key?(:deny_empty)
258
265
  DEPRECATOR.warn("The deny_empty: filter option is deprecated. Use blanks: :rejected.")
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond