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 +4 -4
- data/.github/workflows/docs.yml +0 -2
- data/.github/workflows/release.yml +5 -0
- data/CHANGELOG.md +7 -0
- data/lib/graphiti/resource/dsl.rb +7 -0
- data/lib/graphiti/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 873ef782c20fd4c861ccc48b7d1be6ff79943a22a89bc823d1c929cd64a05e13
|
|
4
|
+
data.tar.gz: 32aab62c054dfc0cf73647fb018adf40efec5862bebddc727e16797857b2987b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fac4855f042d4214bdc196609776efb739de5676d8c464dcffaeeda6f233639609bfb3c450608b394c81aee6470d04013a4989cead074b61a71cc645f3a9eb3e
|
|
7
|
+
data.tar.gz: 8119467fe8a1da3a711f7b597a19f2540f7170d2fa2fe6116d19086d029f8713fdeb976e090aea8a5662d54e7af1df576dc9f29b8c138c3367ba337fc2a7e02c
|
data/.github/workflows/docs.yml
CHANGED
|
@@ -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.")
|
data/lib/graphiti/version.rb
CHANGED