Skip to content

IDA-893 enrichment integration #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 250 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
f20e583
add slot to search
Heather0K Nov 24, 2022
86a099b
cusotmisable checkbox
Heather0K Nov 25, 2022
da0720b
IDA-893 Added enrichment to stack
stephenwf Nov 27, 2022
9603838
IDA-893 Added Enrichment API extension
stephenwf Nov 27, 2022
de74ab5
IDA-893 Added new Site APIs for topics
stephenwf Nov 27, 2022
a4fc07a
IDA-893 Temporary changes to canvas/manifest indexing for new service
stephenwf Nov 27, 2022
56b45fd
IDA-893 Page block support for topic types + topics
stephenwf Nov 27, 2022
f5cdf37
IDA-893 Skeleton routes for topic types and topics
stephenwf Nov 27, 2022
9d0693e
IDA-893 Topics and Topic types admin pages
stephenwf Nov 27, 2022
7413d45
IDA-893 Added enrichment to gitignore
stephenwf Nov 27, 2022
88c443b
start resultsblock
Heather0K Nov 28, 2022
72231ab
IDA-893 bug fixes
stephenwf Nov 28, 2022
88a5a9f
IDA-893 - Updated schemas
stephenwf Nov 28, 2022
727f7ce
appliedFacets block
Heather0K Nov 30, 2022
6233d21
result style
Heather0K Nov 30, 2022
526b2e7
clean uo
Heather0K Dec 8, 2022
b714674
fix testing styles
Heather0K Dec 12, 2022
848a2e9
fix defualt list state and add option to hide snippet text
Heather0K Dec 12, 2022
c0833f3
heading based on context
Heather0K Jan 9, 2023
4caff4a
tidy up some styles
Heather0K Jan 9, 2023
a738c0b
page to context
Heather0K Jan 9, 2023
f719dc7
Merge branch 'feature/v2.1' into MAD-1228/slots-for-search-pages
Heather0K Jan 9, 2023
32b5607
static
Heather0K Jan 9, 2023
5a136de
Begin matching types to md doc
Heather0K Jan 12, 2023
ee42bea
topic type page working
Heather0K Jan 13, 2023
dea153f
single topic page
Heather0K Jan 16, 2023
1e127ea
items in topic
Heather0K Jan 23, 2023
768535b
Merge pull request #635 from digirati-co-uk/enrichment-integration-types
Heather0K Jan 24, 2023
f380438
IDA-941 topic page hero
Heather0K Jan 30, 2023
2b564c7
IDA-942 topic type hero
Heather0K Jan 30, 2023
fef4217
Merge pull request #641 from digirati-co-uk/IDA-927/hero-content-cura…
Heather0K Jan 30, 2023
7ab7abd
topic grid
Heather0K Jan 30, 2023
d9c3f5f
add a block for all topic types items
Heather0K Jan 30, 2023
1d1ad7d
clean up
Heather0K Jan 30, 2023
9891145
fix types
Heather0K Jan 31, 2023
e80c21c
pagintion components
Heather0K Jan 31, 2023
3374c70
Merge branch 'feature/IDA-893-enrichment-integration' into IDA-943/li…
Heather0K Feb 13, 2023
7d82f9d
update some BE tyepes
Heather0K Feb 13, 2023
fc8e04d
docker-compsoe changes
Heather0K Feb 14, 2023
de341f5
Updates to topic formats / types / mapping / models
stephenwf Feb 17, 2023
6d6f7d2
fix build errors
Heather0K Feb 17, 2023
892fe25
fix slot errors
Heather0K Feb 17, 2023
e97696a
Search header component with options to overwrite header
Heather0K Feb 21, 2023
233f822
Merge branch 'feature/v2.1' into feature/slots-for-search
Heather0K Feb 21, 2023
13529ce
remove extra pagination component
Heather0K Feb 21, 2023
3e7ad10
Change API endpoint for indexing on enrichment
mattmcgrattan Feb 22, 2023
b331f1f
fix xreate topic
Heather0K Feb 24, 2023
927eddc
feautured topic items wip
Heather0K Feb 27, 2023
d742fec
featured topcis, create some topic card/snippet components
Heather0K Feb 28, 2023
09977db
related topics
Heather0K Feb 28, 2023
5d5a77b
featured topic items
Heather0K Feb 28, 2023
ff3ba0b
Merge pull request #657 from digirati-co-uk/feature/list-topics-update
Heather0K Feb 28, 2023
99af422
console logs
Heather0K Feb 28, 2023
3035ef1
Merge pull request #665 from digirati-co-uk/feature/topic-featured
Heather0K Feb 28, 2023
275aece
Update docker-compose.enrichment.yml
Heather0K Feb 28, 2023
ba03c6b
Merge pull request #642 from digirati-co-uk/IDA-943/list-topics
Heather0K Feb 28, 2023
ea3e13c
Merge branch 'feature/v2.1' into feature/IDA-893-enrichment-integration
Heather0K Feb 28, 2023
fdf2f11
Merge branch 'feature/IDA-893-enrichment-integration' into feature/sl…
Heather0K Feb 28, 2023
f717484
merge 2.1
Heather0K Feb 28, 2023
39b6162
merge enrichment-integration into slots-for-search and fix conflicts
Heather0K Mar 1, 2023
b90a4c8
reset head
Heather0K Mar 1, 2023
2de8eda
untracket
Heather0K Mar 1, 2023
eb896da
Merge branch 'feature/v2.1' into feature/IDA-893-enrichment-integration
Heather0K Mar 1, 2023
2960bec
fix couple erros
Heather0K Mar 1, 2023
87cf18f
fix build error
Heather0K Mar 1, 2023
8baf931
Merge pull request #666 from digirati-co-uk/hotfix/merge-2.1/to-ida
Heather0K Mar 1, 2023
4418c1d
Merge branch 'feature/IDA-893-enrichment-integration' into feature/sl…
Heather0K Mar 1, 2023
0adc9af
Merge pull request #618 from digirati-co-uk/feature/slots-for-search
Heather0K Mar 1, 2023
f3c0f26
add styled search blocks to topic results
Heather0K Mar 1, 2023
69158be
eiting block
Heather0K Mar 1, 2023
1079ba7
Merge pull request #667 from digirati-co-uk/IDA-925/search-and-faceting
Heather0K Mar 1, 2023
4301b4b
fix props on acordian filters
Heather0K Mar 2, 2023
2a71043
button to take to search page with apploed facets
Heather0K Mar 2, 2023
dea38de
change breascrumbs from id to slug for topic
Heather0K Mar 3, 2023
972cbed
Merge pull request #673 from digirati-co-uk/ida-979/button-search
Heather0K Mar 3, 2023
31edafa
add hash to stop scroll to top on applying facets on topic page
Heather0K Mar 3, 2023
e3aa0e4
style admin topic type
Heather0K Mar 3, 2023
8fd5d75
expand edit for topic and topic type and style topic pages in admin
Heather0K Mar 6, 2023
d829120
add description to model
Heather0K Mar 6, 2023
f3ec330
Merge pull request #675 from digirati-co-uk/feature/topic-curation
Heather0K Mar 6, 2023
94fade0
add uthorities to edit and add block to display links
Heather0K Mar 6, 2023
d80b336
WIP capture model for picking a reosurce in a topic
Heather0K Mar 6, 2023
a801cb2
WIP capture model for topic items - tidied up
Heather0K Mar 7, 2023
4dff189
fill in some todos
Heather0K Mar 7, 2023
52d7e39
add topics to site navigation
Heather0K Mar 7, 2023
24f8151
fill in some todos
Heather0K Mar 7, 2023
c1307c9
add topics to site navigation
Heather0K Mar 7, 2023
bba3cf8
custom nav component
Heather0K Mar 8, 2023
b201a92
get links from globalSiteNav and allow user to add extra nav items
Heather0K Mar 9, 2023
aaaaf49
move custom block to plugin
Heather0K Mar 9, 2023
4ba531d
create block to display jsut the site logo or name as standalone from…
Heather0K Mar 9, 2023
dec881b
combine mapToProps
Heather0K Mar 10, 2023
b0bbb4c
clean up en/madoc.json and clean up topic page slots
Heather0K Mar 13, 2023
f7bbe47
remove console logs
Heather0K Mar 13, 2023
9996c82
Merge pull request #679 from digirati-co-uk/IDA-993/Ida-menu-dropdown
Heather0K Mar 13, 2023
25a1a8d
Merge branch 'feature/IDA-893-enrichment-integration' into ida-810/cu…
Heather0K Mar 13, 2023
2501ae5
fix page blocks/slots for topic pages
Heather0K Mar 15, 2023
1c75b90
fix topic-type hero style and clip text to expand
Heather0K Mar 15, 2023
e95c0a1
update types and components inline with updated backend model
Heather0K Mar 16, 2023
789911e
add z-intex to site logo so it overlaps dorpdown nav
Heather0K Mar 16, 2023
2bc98c8
full width surface option
Heather0K Mar 16, 2023
567801e
update edit topic type
Heather0K Mar 16, 2023
313e7db
update and fix topics dn topic type create/edit
Heather0K Mar 17, 2023
0fc53dc
update TopicExplorer
Heather0K Mar 17, 2023
39fca31
Updates to the indexing of manifests/canvases, and added a docker-com…
mattmcgrattan Mar 21, 2023
f6c54f1
Merge pull request #681 from digirati-co-uk/feature/additional-canvas…
mattmcgrattan Mar 21, 2023
fc12b7b
Merge pull request #676 from digirati-co-uk/ida-810/curation-links-fe…
Heather0K Mar 22, 2023
0c5fb0f
featured items to take only id
Heather0K Mar 22, 2023
8e08080
Merge branch 'main' into feature/featured-items/topics
Heather0K Mar 22, 2023
cfa21a3
IDA-983 - Batch canvas relations
stephenwf Mar 22, 2023
5c1d042
featured topic picker
Heather0K Mar 22, 2023
029a2f0
Added two env variables to support cloud OCR
mattmcgrattan Mar 23, 2023
3558ace
edit featured resources
Heather0K Mar 23, 2023
d262c66
clean up some topic page components
Heather0K Mar 23, 2023
caa68ab
get featured toipics form working
Heather0K Mar 23, 2023
6880c92
clean up topic edit
Heather0K Mar 23, 2023
33531f1
Merge pull request #685 from digirati-co-uk/patch/IDA-893-enrichment-…
Heather0K Mar 23, 2023
51198bd
Merge pull request #687 from digirati-co-uk/main
Heather0K Mar 23, 2023
8c960e3
fix for tests
Heather0K Mar 23, 2023
7901960
remove console logs, remove translatiosn
Heather0K Mar 24, 2023
25e34c2
split topic hero into 2 slots
Heather0K Mar 24, 2023
50ab92c
fix dropdown z-index
Heather0K Mar 24, 2023
bc0853a
add pagination style options for topic-type page
Heather0K Mar 24, 2023
735908f
add sub routes for manifest and anvases in topics
Heather0K Mar 24, 2023
28d5b51
WIP fix search - wrong endpoing
Heather0K Mar 24, 2023
663b8ac
todo - topic item facets
Heather0K Mar 27, 2023
118ada2
remove console logs
Heather0K Mar 27, 2023
96a0b14
Merge branch 'feature/IDA-893-enrichment-integration' into hotfix/sea…
Heather0K Mar 27, 2023
cb8cee6
simplify
Heather0K Mar 27, 2023
a6140d6
remove unused files
Heather0K Mar 27, 2023
8e757fc
add button to invoke enrichment on admin
Heather0K Mar 27, 2023
67cbbfd
show tags on a canvas sidebar
Heather0K Mar 28, 2023
d6ad235
link tags to topic pages
Heather0K Mar 29, 2023
1dbd006
pass down topicId into use-search
Heather0K Mar 29, 2023
c139fa7
page for editing tags and add functionality to remove tags
Heather0K Mar 29, 2023
cdbb2c1
Merge pull request #686 from digirati-co-uk/feature/featured-items/to…
Heather0K Mar 30, 2023
64db93b
Merge pull request #682 from digirati-co-uk/feature/IDA-983-batch-can…
Heather0K Mar 30, 2023
49611db
clean up
Heather0K Mar 30, 2023
7291b49
Merge branch 'feature/IDA-893-enrichment-integration' into Feature/ta…
Heather0K Mar 30, 2023
a6e964a
Merge pull request #689 from digirati-co-uk/feature/ida-949
Heather0K Mar 30, 2023
0ab1c6f
Merge pull request #688 from digirati-co-uk/hotfix/search-endpoint/st…
Heather0K Mar 30, 2023
f9a1a2a
Merge branch 'feature/IDA-893-enrichment-integration' into Feature/ta…
Heather0K Mar 30, 2023
912e2af
WIP
Heather0K Mar 30, 2023
06a30da
show all tags in edit
Heather0K Mar 30, 2023
b19fe99
model for adding tags returning autocomplete of all topics in type cl…
Heather0K Mar 30, 2023
a70e358
add a new tag to a resorce
Heather0K Mar 31, 2023
bcd0710
change facet hsape for topics and ensure right endpoint used for sear…
Heather0K Mar 31, 2023
aa6d732
fix add featured resource bug and fix list-topic-items to be inline w…
Heather0K Mar 31, 2023
04a0085
move topic dropdown up the feild list to fix overflow bug
Heather0K Mar 31, 2023
8ed300e
menu items for topic canvas page
Heather0K Mar 31, 2023
d5481bb
clean up
Heather0K Mar 31, 2023
6a35fe0
Merge pull request #690 from digirati-co-uk/feature/tagging
Heather0K Mar 31, 2023
9e2d564
Merge branch 'feature/IDA-893-enrichment-integration' into hotfix/mis…
Heather0K Mar 31, 2023
0c72e1f
fix isclamped showing on no description
Heather0K Mar 31, 2023
4ff82b1
search filters for topics
Heather0K Apr 3, 2023
8455d3f
add aplied facets to query
Heather0K Apr 3, 2023
e7fb016
add dropdown to view by manifest or canvas
Heather0K Apr 3, 2023
9253755
fix query
Heather0K Apr 3, 2023
18d40ec
fix: changed text instead of valu
Heather0K Apr 3, 2023
bd3ac84
Update the build branches to include the IDA branch
mattmcgrattan Apr 3, 2023
547be4f
Merge pull request #694 from digirati-co-uk/patch/ida-build
mattmcgrattan Apr 3, 2023
cd927d1
Merge branch 'feature/IDA-893-enrichment-integration' into hotfix/mis…
Heather0K Apr 3, 2023
4ac7da7
Merge pull request #691 from digirati-co-uk/hotfix/misc-bugs
Heather0K Apr 3, 2023
d6b732b
Update gateway-docker.yaml
stephenwf Apr 4, 2023
c46465a
Update gateway-docker.yaml
stephenwf Apr 4, 2023
c46049f
Moved MadocApi global to admin page only
stephenwf Apr 4, 2023
744fe65
Merge branch 'main' into feature/IDA-893-enrichment-integration
stephenwf Apr 4, 2023
7667155
get topicId from breads
Heather0K Apr 4, 2023
fdc4a2e
pass page down and delete featured resorces if not added in create
Heather0K Apr 4, 2023
5390cfc
delete featured topics if empty in create
Heather0K Apr 4, 2023
0d25a74
move topic type pagination in same slot as grid
Heather0K Apr 4, 2023
c58e252
add height option to topic type hero block
Heather0K Apr 4, 2023
38415dd
add image style options to topic hero
Heather0K Apr 4, 2023
0f2b430
Merge pull request #696 from digirati-co-uk/hotfix/topic-page-bugs
Heather0K Apr 4, 2023
52cd8a2
change all to empty string
Heather0K Apr 4, 2023
73c8c2f
Merge pull request #697 from digirati-co-uk/hotfix/clear-facet-bug
Heather0K Apr 4, 2023
79335f4
only clear facets on clear button
Heather0K Apr 4, 2023
568b0a4
add combine queries
Heather0K Apr 4, 2023
7b6496a
only show edit tags button if can edit
Heather0K Apr 4, 2023
6639386
Merge pull request #698 from digirati-co-uk/hotfix/clear-facet-bug
Heather0K Apr 4, 2023
82a6e8d
add abbility to add new types then tags
Heather0K Apr 5, 2023
33d9e98
change language
Heather0K Apr 5, 2023
e756226
pagination WIP
Heather0K Apr 5, 2023
4858cd2
fix paginaion
Heather0K Apr 5, 2023
438fa1c
fix dropdown sticky bug
Heather0K Apr 5, 2023
a4b8bc8
Merge pull request #700 from digirati-co-uk/create-new-tag
Heather0K Apr 5, 2023
a4f530d
public route for tags
Heather0K Apr 17, 2023
792def1
improve UX for tagging
Heather0K Apr 17, 2023
496a8bc
send slug for topic type
Heather0K Apr 17, 2023
afaa394
add translations
Heather0K Apr 17, 2023
18fdcb8
styled topic type list page - awaiting thumbnail and count fron BE
Heather0K Apr 17, 2023
16de93c
add small block for topic type count
Heather0K Apr 17, 2023
150e505
improve tagg panel ensure only ids are beign sent
Heather0K Apr 19, 2023
1ab787f
Merge pull request #711 from digirati-co-uk/IDA-1068/hotfix-tagging
Heather0K Apr 19, 2023
b7660ea
Merge branch 'feature/IDA-893-enrichment-integration' into IDA-1070/t…
Heather0K Apr 21, 2023
38a8c9b
add image and types to list page
Heather0K Apr 21, 2023
57b139e
Update services/madoc-ts/src/frontend/site/features/AllTopicTypeItems…
Heather0K Apr 21, 2023
522f53f
remove env var
Heather0K Apr 21, 2023
ae6e8a5
Merge branch 'IDA-1070/topic-type-list-page' of https://github.com/di…
Heather0K Apr 21, 2023
d53c73c
Merge pull request #712 from digirati-co-uk/IDA-1070/topic-type-list-…
Heather0K Apr 21, 2023
f9bc4e3
combine metadata and entity facets
Heather0K Apr 21, 2023
c425634
Merge pull request #718 from digirati-co-uk/IDA-1073/hotfix/all-facet…
Heather0K Apr 21, 2023
2eb3006
merge main
Heather0K Apr 27, 2023
b9a5f18
fix forms for creating topics
Heather0K Apr 28, 2023
c41f5ac
fix editing topic
Heather0K Apr 28, 2023
9f6689d
remove applied from topic autocomplete and change color on tagg applied
Heather0K Apr 28, 2023
2e82635
conflcits
Heather0K Apr 28, 2023
20a566d
fix build error
Heather0K Apr 28, 2023
42ff7ef
fix failed test
Heather0K Apr 28, 2023
7b5b9a3
Merge pull request #722 from digirati-co-uk/feature/update-base-merge…
Heather0K Apr 28, 2023
2eb9716
Merge branch 'feature/IDA-893-enrichment-integration' into IDA-1074/h…
Heather0K Apr 28, 2023
450b8c8
fix build
Heather0K Apr 28, 2023
a139a9b
Merge pull request #723 from digirati-co-uk/IDA-1074/hotfix-tagging
Heather0K Apr 28, 2023
48af12b
Merge branch 'main' into MAD-1359/admin-crud
Heather0K May 11, 2023
e39141d
add vaidation to admin forms
Heather0K May 11, 2023
0cb37ad
tidy up admin pages and add requird to fields
Heather0K May 11, 2023
14190cb
improve admin routes for topics and add tag view
Heather0K May 12, 2023
97bb790
Merge branch 'main' into refresh/update-base
Heather0K May 15, 2023
9c8a098
merge main
Heather0K May 15, 2023
a24162a
Merge pull request #728 from digirati-co-uk/refresh/update-base
Heather0K May 15, 2023
12b10c5
fix build error
Heather0K May 15, 2023
9113905
Merge branch 'feature/IDA-893-enrichment-integration' into MAD-1359/a…
Heather0K May 15, 2023
fc8c562
add manage tags to canvas and manifesta
Heather0K May 15, 2023
2dc1902
tidy up and split topic type details and list topis
Heather0K May 15, 2023
37557d5
add translations for all admin topic pages
Heather0K May 15, 2023
cf9df5e
tidy out madoc.json
Heather0K May 15, 2023
170419c
change search image
Heather0K May 15, 2023
5a8a62d
Merge pull request #729 from digirati-co-uk/MAD-1359/admin-crud
Heather0K May 16, 2023
3183f0f
begin quick search extention organisation
Heather0K May 16, 2023
fffbdd1
tidy up extentions
Heather0K May 17, 2023
6c765cf
finish tidy up extention and types
Heather0K May 18, 2023
ba4b13d
test and fix soem form errors
Heather0K May 19, 2023
cd55290
fix bugs for topicitemexplorer and topicexplorer
Heather0K May 22, 2023
65eb4ce
fix bugs for images on topic/type edit
Heather0K May 22, 2023
b0bb826
madoc.json and remove console logs
Heather0K May 22, 2023
c7a79fc
fix links and search
Heather0K May 22, 2023
2e5cb91
madoc.json
Heather0K May 22, 2023
2f6ff0b
Merge pull request #731 from digirati-co-uk/tidy-extentions
Heather0K May 23, 2023
7627922
some small ux imrovments for seach and fix slot contexts for some bloks
Heather0K May 23, 2023
f00d657
open facets on default if applied
Heather0K May 23, 2023
e471dea
add nexted and allow multiple for blocks that
Heather0K May 23, 2023
9727ab7
add option to change result view
Heather0K May 23, 2023
7d75a85
madoc.json
Heather0K May 23, 2023
6e76444
dont check store for custom fields before adding new
Heather0K May 30, 2023
df06933
fix tests
Heather0K May 30, 2023
23c27a8
Merge pull request #732 from digirati-co-uk/MAD-1356/search-ui
Heather0K May 30, 2023
91c0ed9
add item count on search facets
Heather0K Feb 15, 2024
3afe726
assign facet type
Heather0K Feb 15, 2024
f08c6de
Merge pull request #815 from digirati-co-uk/hotfix/add-facet-count
Heather0K Feb 15, 2024
ddd05f4
bounce
Heather0K Feb 16, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ infrastructure/ansible/vars/default.yml
var_backup
e2e/cypress/fixtures/madoc-test-fixtures
services/search
services/enrichment
services/madoc-remix
services/madoc-ts/service-jwts/madoc-remix.json
e2e/test-fixtures/postgres/default/default.sql
34 changes: 34 additions & 0 deletions docker-compose.enrichment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: "3.2"
services:
# Internal services

search:
build:
context: services/enrichment
dockerfile: Dockerfile
environment:
- BROWSABLE=False
- USE_DOCKER=yes
- IPYTHONDIR=/app/.ipython
- MIGRATE=True
- LOAD=False
- DEBUG=True
- DJANGO_DEBUG=True
- WAITRESS=False
- POSTGRES_HOST=shared-postgres
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_USER=${POSTGRES_SEARCH_API_USER}
- REDIS_URL=redis://gateway-redis:6379
- APPEND_SLASH=False
- ALLOWED_HOSTS=gateway,madoc.local
- POSTGRES_PASSWORD=${POSTGRES_SEARCH_API_PASSWORD}
- POSTGRES_SCHEMA=${POSTGRES_SEARCH_API_SCHEMA}
- POSTGRES_DB=${POSTGRES_DB}
- DATABASE_URL=postgres://${POSTGRES_SEARCH_API_USER}:${POSTGRES_SEARCH_API_PASSWORD}@shared-postgres:${POSTGRES_PORT}/${POSTGRES_DB}
- INLINE_WORKER=True
links:
- shared-postgres
- gateway-redis
volumes:
- ./services/enrichment/app:/app:delegated

12 changes: 11 additions & 1 deletion services/gateway/conf.d/services/search-api.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
location /api/search {
auth_request /_validate_jwt;
proxy_pass http://search:8000/api/search;
proxy_pass http://search:8000/madoc;
}

location /api/enrichment {
auth_request /_validate_jwt;
proxy_pass http://search:8000/madoc;
}

location /api/enrichment/internal {
auth_request /_validate_jwt;
proxy_pass http://search:8000/api;
}
File renamed without changes.
14 changes: 14 additions & 0 deletions services/madoc-ts/migrations/2022-11-27T20-30.topic-slots.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--topic-slots (up)
alter table "site_slots"
add filter_topic_type_none boolean default true,
add filter_topic_type_all boolean default false,
add filter_topic_type_exact text,
add filter_topic_type_whitelist text[],
add filter_topic_type_blacklist text[],

add filter_topic_none boolean default true,
add filter_topic_all boolean default false,
add filter_topic_exact text,
add filter_topic_whitelist text[],
add filter_topic_blacklist text[]
;
13 changes: 13 additions & 0 deletions services/madoc-ts/migrations/down/2022-11-27T20-30.topic-slots.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--topic-slots (down)

alter table "site_slots" drop column filter_topic_type_none;
alter table "site_slots" drop column filter_topic_type_all;
alter table "site_slots" drop column filter_topic_type_exact;
alter table "site_slots" drop column filter_topic_type_whitelist;
alter table "site_slots" drop column filter_topic_type_blacklist;

alter table "site_slots" drop column filter_topic_none;
alter table "site_slots" drop column filter_topic_all;
alter table "site_slots" drop column filter_topic_exact;
alter table "site_slots" drop column filter_topic_whitelist;
alter table "site_slots" drop column filter_topic_blacklist;
52 changes: 52 additions & 0 deletions services/madoc-ts/schemas/CreateSlotRequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,58 @@
}
}
}
},
"topicType": {
"type": "object",
"properties": {
"none": {
"type": "boolean"
},
"all": {
"type": "boolean"
},
"exact": {
"type": "string"
},
"whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"blacklist": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"topic": {
"type": "object",
"properties": {
"none": {
"type": "boolean"
},
"all": {
"type": "boolean"
},
"exact": {
"type": "string"
},
"whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"blacklist": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions services/madoc-ts/schemas/EditorialContext.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"canvas": {
"type": "number"
},
"topic": {
"type": "string"
},
"topicType": {
"type": "string"
},
"page": {
"type": "number"
},
Expand Down
6 changes: 6 additions & 0 deletions services/madoc-ts/schemas/ServerEditorialContext.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"canvas": {
"type": "number"
},
"topic": {
"type": "string"
},
"topicType": {
"type": "string"
},
"page": {
"type": "number"
},
Expand Down
52 changes: 52 additions & 0 deletions services/madoc-ts/schemas/SiteSlot.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,58 @@
}
}
}
},
"topic": {
"type": "object",
"properties": {
"none": {
"type": "boolean"
},
"all": {
"type": "boolean"
},
"exact": {
"type": "string"
},
"whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"blacklist": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"topicType": {
"type": "object",
"properties": {
"none": {
"type": "boolean"
},
"all": {
"type": "boolean"
},
"exact": {
"type": "string"
},
"whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"blacklist": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
Expand Down
48 changes: 48 additions & 0 deletions services/madoc-ts/schemas/SiteSlotRow.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,48 @@
"items": {
"type": "number"
}
},
"filter_topic_type_none": {
"type": "boolean"
},
"filter_topic_type_all": {
"type": "boolean"
},
"filter_topic_type_exact": {
"type": "string"
},
"filter_topic_type_whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"filter_topic_type_blacklist": {
"type": "array",
"items": {
"type": "string"
}
},
"filter_topic_none": {
"type": "boolean"
},
"filter_topic_all": {
"type": "boolean"
},
"filter_topic_exact": {
"type": "string"
},
"filter_topic_whitelist": {
"type": "array",
"items": {
"type": "string"
}
},
"filter_topic_blacklist": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
Expand All @@ -121,6 +163,12 @@
"filter_project_all",
"filter_project_exact",
"filter_project_none",
"filter_topic_all",
"filter_topic_exact",
"filter_topic_none",
"filter_topic_type_all",
"filter_topic_type_exact",
"filter_topic_type_none",
"id",
"site_id",
"slot_layout",
Expand Down
6 changes: 3 additions & 3 deletions services/madoc-ts/schemas/SlotFilterConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"type": "boolean"
},
"exact": {
"type": "number"
"$ref": "#/definitions/IDType"
},
"whitelist": {
"type": "array",
"items": {
"type": "number"
"$ref": "#/definitions/IDType"
}
},
"blacklist": {
"type": "array",
"items": {
"type": "number"
"$ref": "#/definitions/IDType"
}
}
},
Expand Down
Loading