Skip to content

Commit 2427fa3

Browse files
fredvdsneridaghTishasoumya-02iFlameingdavisagli
authored
Add instance-local.yaml support in backend. (#225) (#274)
* Support optional instance-local.yaml in the backed to override zope setting on a development install. * Added the prepublish script * Add Content Interactions (rating, discussion, sharing) (#185) * Rating * changelog * recheck imports * update * add comments to customized components * add comments * fix * add other engagement icons * fix * comment out calling apis and fix tests failing * fix lint * fix lint and rename component * rename stylesheet * comment out things which would not work without proper data * fix lint * fix: add aria-label to button * fix * initial commit * backend for likes and comment * Install plone.app.discussion * 90% done * minor fix * fix after review * backend german translation * add cypress test * update pnpm * add backend changelog * add upgreade steps and update backend test * minor fix * add enable_likes behaviour and polish code * polish css code * fix test and format * final polish code * Add upgrade step to install plone.app.discussion * refactor code based on review * fix cypress test * fix backend-test * fix format * fix format * fix ci and cypress test * fix the text of sharing content * minor typo * add docs and improve global settings for like * add documentation and changelog * rename changelog file * Fix the bug when navigating to different pages and saving pages * Hide enable_likes field if enable_content_rating registry setting is disabled * final fix * There's no reason to reindex votes, since there is no votes index * Rename docs page to Content Interactions * Use proper i18n mechanism for translating share email subject * Edit changelog * Enable content rating for new sites, disable for upgraded sites * Fix cypress test, ratings are enabled by default now --------- Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com> Co-authored-by: David Glick <david@glicksoftware.com> * Update to Volto 19.29.0 and vlt 7.5.1 (#268) * Update to Volto 19.29.0 and vlt 7.5.1 * lock * Update Share email text (#273) * Move news fragment to right folder * Apply suggestion from @davisagli don't use instance-local.yml in the observed files list Co-authored-by: David Glick <david@glicksoftware.com> --------- Co-authored-by: Victor Fernandez de Alba <sneridagh@gmail.com> Co-authored-by: Tisha Soumya <tishasoumya@gmail.com> Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com> Co-authored-by: David Glick <david@glicksoftware.com> Co-authored-by: Dante Álvarez <89805481+danalvrz@users.noreply.github.com>
1 parent f897aa4 commit 2427fa3

5 files changed

Lines changed: 17 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
!.vscode
22
/scripts
3-
.DS_Store
3+
.DS_Store
4+
/data

backend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var/
4444
.installed.txt
4545
.lock
4646
constraints.txt
47+
instance-local.yaml
4748
requirements.txt
4849
requirements.lock
4950
.pytest_cache

backend/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,14 @@ all: build
5454
help: ## This help message
5555
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
5656

57-
instance/etc/zope.ini instance/etc/zope.conf: ## Create instance configuration
57+
instance/etc/zope.ini instance/etc/zope.conf: instance.yaml ## Create instance configuration
5858
@echo "$(GREEN)==> Create instance configuration$(RESET)"
59-
@uvx cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
59+
if [[ -s instance-local.yaml ]]; then \
60+
echo ">>> Using instance-local.yaml"; \
61+
uvx cookiecutter -f --no-input --config-file instance-local.yaml gh:plone/cookiecutter-zope-instance; \
62+
else \
63+
uvx cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance; \
64+
fi
6065

6166
.PHONY: config
6267
config: instance/etc/zope.ini
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
default_context:
2+
initial_user_password: 'admin'
3+
zcml_package_includes: 'kitconcept.intranet'
4+
db_storage: direct
5+
db_filestorage_location: ../data/filestorage/Data.fs
6+
db_blobs_location: ../data/blobstorage

backend/news/225.internal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support optional instance-local.yaml in the backed to override cookiecutter zope settings on a development install. @fredvd

0 commit comments

Comments
 (0)