Repository navigation
Commit 5acbd31
committed
Replace list fields such as groups in package_revise instead of merging by position
package_revise merges an update list into the existing list by index. The
existing elements keep their ids and CKAN resolves groups by id before
name, so changed locations were not applied: new groups were only added
past the end of the old list and removals were only sent when the
removed element was last. Filter out non-resource list keys present in
the existing dataset so the update replaces them.1 parent e8b2af7 commit 5acbd31
3 files changed
Lines changed: 423 additions & 381 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| |||
690 | 691 | | |
691 | 692 | | |
692 | 693 | | |
693 | | - | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
| 698 | + | |
732 | 699 | | |
733 | 700 | | |
734 | 701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
161 | 182 | | |
162 | 183 | | |
163 | 184 | | |
| |||
237 | 258 | | |
238 | 259 | | |
239 | 260 | | |
240 | | - | |
| 261 | + | |
241 | 262 | | |
242 | 263 | | |
243 | 264 | | |
| |||
947 | 968 | | |
948 | 969 | | |
949 | 970 | | |
950 | | - | |
| 971 | + | |
951 | 972 | | |
952 | 973 | | |
953 | 974 | | |
| |||
1607 | 1628 | | |
1608 | 1629 | | |
1609 | 1630 | | |
1610 | | - | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1611 | 1637 | | |
1612 | 1638 | | |
1613 | 1639 | | |
| |||
0 commit comments