You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(core): hide versions.* documents from search, update getPublishedId to account for versions (#7470)
* fix(core): hide versions.* documents from search and lists, show error in document panel
* chore(core): update draftUtils to account for version ids
* fix(structure): revert structureTitle and DocumentPane changes for version checks
* fix: use path separator in getVersionId split
Co-authored-by: Ash <[email protected]>
---------
Co-authored-by: Ash <[email protected]>
'*[_type in $__types && (_id match $t0 || _type match $t0 || title match $t0) && (_id match $t1 || _type match $t1 || title match $t1)]',
120
+
'*[_type in $__types && (_id match $t0 || _type match $t0 || title match $t0) && (_id match $t1 || _type match $t1 || title match $t1) && !(_id in path("versions.**"))]',
* This is an improvement over before, where an illegal term was used (number-as-string, ala ["0"]),
404
404
* which lead to no hits at all. */
405
405
`// findability-mvi:${FINDABILITY_MVI}\n`+
406
-
'*[_type in $__types && (_id match $t0 || _type match $t0 || cover[].cards[].title match $t0) && (_id match $t1 || _type match $t1 || cover[].cards[].title match $t1)]'+
406
+
'*[_type in $__types && (_id match $t0 || _type match $t0 || cover[].cards[].title match $t0) && (_id match $t1 || _type match $t1 || cover[].cards[].title match $t1) && !(_id in path("versions.**"))]'+
407
407
'| order(_id asc)'+
408
408
'[0...$__limit]'+
409
409
// at this point we could refilter using cover[0].cards[0].title.
0 commit comments