Commit 5468bef
feat(psc): add has_awards; retire the last CONTRACT_OMITTED_PARAMS entry
Re-vendors the contract now that makegov/tango#2948 merged, which taught the
generator to publish params a viewset reads straight from query_params.
Two consequences, both anticipated:
1. The self-cleaning warning added in this PR fired on its own carve-out —
"mas_sins: CONTRACT_OMITTED_PARAMS entries no longer needed (the contract
now publishes them): search". Removed it. The list is now empty, which is
the goal state; the mechanism stays for the next case.
2. A new real gap surfaced: psc `has_awards` filters (2,526 codes -> 2,243)
but list_psc did not expose it. It was invisible until #2948 published it.
Added, sending False explicitly rather than dropping it, since the API
distinguishes the two.
Note that #2948 also fixed a truthiness bug where has_awards=false filtered
identically to true. Production is still on 4.18.5 and staging is at 4.18.5e,
so until that deploys, has_awards=False returns awards-only results. Verified
live: 2,526 unfiltered, 2,243 for both True and False today.
Gates: conformance exit 0 with no errors, shape coverage 0 gaps. 366 unit
tests pass, 124 integration. mypy strict clean. The one failure,
test_production_smoke::test_search_filters, is a live-API 504 reproduced on
unmodified main.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a9cb0da commit 5468bef
5 files changed
Lines changed: 74 additions & 15 deletions
File tree
- contracts
- scripts
- tango
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4613 | 4613 | | |
4614 | 4614 | | |
4615 | 4615 | | |
4616 | | - | |
4617 | | - | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
4618 | 4625 | | |
4619 | 4626 | | |
4620 | 4627 | | |
| |||
6882 | 6889 | | |
6883 | 6890 | | |
6884 | 6891 | | |
6885 | | - | |
6886 | | - | |
| 6892 | + | |
| 6893 | + | |
| 6894 | + | |
| 6895 | + | |
| 6896 | + | |
| 6897 | + | |
| 6898 | + | |
| 6899 | + | |
| 6900 | + | |
6887 | 6901 | | |
6888 | 6902 | | |
6889 | 6903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4448 | 4448 | | |
4449 | 4449 | | |
4450 | 4450 | | |
| 4451 | + | |
4451 | 4452 | | |
4452 | | - | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
4453 | 4458 | | |
4454 | 4459 | | |
4455 | 4460 | | |
4456 | 4461 | | |
4457 | 4462 | | |
4458 | 4463 | | |
4459 | 4464 | | |
| 4465 | + | |
| 4466 | + | |
4460 | 4467 | | |
4461 | 4468 | | |
4462 | 4469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1949 | 1949 | | |
1950 | 1950 | | |
1951 | 1951 | | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
0 commit comments