Skip to content

Commit

Permalink
Merge pull request #1034 from research-software-directory/remove-oaip…
Browse files Browse the repository at this point in the history
…mh-table

Remove OAI-PMH table
  • Loading branch information
ewan-escience authored Oct 31, 2023
2 parents 3b7a10e + a886b73 commit 0257c93
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 75 deletions.
5 changes: 0 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ MAX_REQUESTS_GITLAB=6
# consumed by: scrapers
MAX_REQUESTS_DOI=6

# Fill in any non-empty string to enable the oaipmh scraper.
# When commented it is disabled.
# consumed by: scrapers
#ENABLE_OAIPMH_SCRAPER=True

# ---- SECRETS ------ SECRETS -----------

# consumed by services: database
Expand Down
39 changes: 0 additions & 39 deletions database/017-create-narcis-table.sql

This file was deleted.

13 changes: 1 addition & 12 deletions database/020-row-level-security.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
-- SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center
-- SPDX-FileCopyrightText: 2022 - 2023 Dusan Mijatovic (dv4all)
-- SPDX-FileCopyrightText: 2022 - 2023 dv4all
-- SPDX-FileCopyrightText: 2022 - 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
-- SPDX-FileCopyrightText: 2022 - 2023 dv4all
-- SPDX-FileCopyrightText: 2022 Christian Meeßen (GFZ) <christian.meessen@gfz-potsdam.de>
-- SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center)
-- SPDX-FileCopyrightText: 2023 Felix Mühlbauer (GFZ) <felix.muehlbauer@gfz-potsdam.de>
Expand Down Expand Up @@ -724,17 +724,6 @@ CREATE POLICY admin_all_rights ON meta_pages TO rsd_admin
WITH CHECK (TRUE);


-- oaipmh
ALTER TABLE oaipmh ENABLE ROW LEVEL SECURITY;

CREATE POLICY anyone_can_read ON oaipmh FOR SELECT TO rsd_web_anon, rsd_user
USING (TRUE);

CREATE POLICY admin_all_rights ON oaipmh TO rsd_admin
USING (TRUE)
WITH CHECK (TRUE);


-- backend logs
ALTER TABLE backend_log ENABLE ROW LEVEL SECURITY;

Expand Down
1 change: 0 additions & 1 deletion deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ services:
- ZENODO_ACCESS_TOKEN
- MAX_REQUESTS_DOI
- CROSSREF_CONTACT_EMAIL
- ENABLE_OAIPMH_SCRAPER
- LIBRARIES_IO_ACCESS_TOKEN
depends_on:
- database
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ services:
- ZENODO_ACCESS_TOKEN
- MAX_REQUESTS_DOI
- CROSSREF_CONTACT_EMAIL
- ENABLE_OAIPMH_SCRAPER
- LIBRARIES_IO_ACCESS_TOKEN
depends_on:
- database
Expand Down
5 changes: 0 additions & 5 deletions e2e/.env.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ MAX_REQUESTS_GITLAB=3
# consumed by: scrapers
MAX_REQUESTS_DOI=3

# Fill in any non-empty string to enable the oaipmh scraper.
# When commented it is disabled.
# consumed by: scrapers
# ENABLE_OAIPMH_SCRAPER=True

# ---- SECRETS ------ SECRETS -----------

# consumed by services: database
Expand Down
12 changes: 0 additions & 12 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,6 @@ server {
proxy_pass http://backend/;
}

location /oaipmh {
if ($arg_verb != "ListRecords") {
return 404;
}
if ($arg_metadataPrefix != "datacite4") {
return 404;
}
set $args "";
proxy_set_header Accept text/xml;
proxy_pass http://backend/oaipmh?select=data;
}

location /swagger/ {
proxy_pass http://swagger:8080/;
}
Expand Down

0 comments on commit 0257c93

Please sign in to comment.