Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Changelog
1.4.45 (unreleased)
-------------------

- WEB-4418: Filter search results by published state for contacts, events and news in smartweb-search webcomponent
[remdub]

- Fix IndexError on EventsView/NewsView/DirectoryView when direct_access UUID points to a missing or unpublished item: return None instead of crashing the page render
[boulch]

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@

//! moment-timezone.js

//! moment.js

//! moment.js locale configuration

//! version : 0.6.0
//! version : 0.6.2

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ContactResult = (props) => {
url: "",
baseURL:
props.url +
"/@search?&_core=directory&b_size=100&metadata_fields=taxonomy_contact_category",
"/@search?&_core=directory&b_size=100&metadata_fields=taxonomy_contact_category&review_state=published",
headers: {
Accept: "application/json",
},
Expand All @@ -29,7 +29,7 @@ const ContactResult = (props) => {
},
[props]
);

useEffect(() => {
if (props.url) {
axios
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const EventsResult = (props) => {
{
method: "get",
url: "",
baseURL: props.url + "/@search?&_core=events&b_size=100", //props.queryUrl*/,
baseURL: props.url + "/@search?&_core=events&b_size=100&review_state=published", //props.queryUrl*/,
headers: {
Accept: "application/json",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const NewsResult = (props) => {
{
method: "get",
url: "",
baseURL: props.url + "/@search?&_core=news&b_size=100", //props.queryUrl*/,
baseURL: props.url + "/@search?&_core=news&b_size=100&review_state=published", //props.queryUrl*/,
headers: {
Accept: "application/json",
},
Expand Down
7 changes: 3 additions & 4 deletions src/imio/smartweb/core/webcomponents/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,10 @@ module.exports = (env, argv) => {
watchFiles: {
paths: ["./../**/*.pt"], // Also watch for .pt file change
},
// De-comment this when new resources registry is out.
// Python webresource module adds a integrity token so we need to write to disk so it can be recomputed
// devMiddleware: {
// writeToDisk: true,
//},
devMiddleware: {
writeToDisk: true,
},

// Proxy everything to the Plone Backend EXCEPT our bundle as
// Webpack Dev Server will serve it.
Expand Down
Loading