Skip to content

Commit

Permalink
Merge pull request #1661 from ral-facilities/release/v2.0.0
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
louise-davies authored Jul 24, 2024
2 parents 8c0b1b4 + 6cb8de5 commit f1d5830
Show file tree
Hide file tree
Showing 598 changed files with 83,643 additions and 84,831 deletions.
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/.github
/.husky
/packages/datagateway-*/cypress
/packages/datagateway-*/cypress.json
/packages/datagateway-*/server
/packages/datagateway-*/README.md
**/build
**/coverage
**/lib
**/node_modules
.gitignore
.prettierrc
codecov.yml
CODEOWNERS
LICENSE.md
README.md
Dockerfile
**/*.test.*
**/setupTests*
**/testData*
13 changes: 13 additions & 0 deletions .github/add_doi_datapublicationtype.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from icat.client import Client

client = Client(
"https://localhost:8181",
checkCert=False,
)
client.login("simple", {"username": "root", "password": "pw"})

data_publication_type = client.new("dataPublicationType")
data_publication_type.name = "User-defined"
data_publication_type.description = "User-defined"
data_publication_type.facility = client.get("Facility", 1)
data_publication_type.create()
50 changes: 50 additions & 0 deletions .github/add_icat_rules.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from icat.client import Client

client = Client(
"https://localhost:8181",
checkCert=False,
)
client.login("simple", {"username": "root", "password": "pw"})

public_tables = [
"Instrument",
"ParameterType",
"InvestigationType",
"DatasetType",
"SampleType",
"DatafileFormat",
"Facility",
"FacilityCycle",
]

client.createRules("R", public_tables)

public_steps = [
("Datafile", "dataset"),
("Dataset", "investigation"),
("Sample", "investigation"),
("Instrument", "instrumentScientists"),
("Investigation", "investigationFacilityCycles"),
("InstrumentScientist", "user"),
("Investigation", "publications"),
("Sample", "type"),
("InvestigationUser", "user"),
("Investigation", "investigationUsers"),
("Investigation", "investigationInstruments"),
("Dataset", "sample"),
("Dataset", "datafiles"),
("Investigation", "datasets"),
("Investigation", "samples"),
("Sample", "parameters"),
("Investigation", "parameters"),
("Dataset", "parameters"),
("Datafile", "parameters"),
]

public_step_objects = []

for step in public_steps:
ps = client.new("PublicStep", origin=step[0], field=step[1])
public_step_objects.append(ps)

client.createMany(public_step_objects)
18 changes: 18 additions & 0 deletions .github/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ICAT_URL=https://host.docker.internal:8181
FACILITY=LILS
ICAT_USERNAME=root
ICAT_PASSWORD=pw
PUBLISHER=test
MINTER_ROLE=PI
VERSION=0.01

ICAT_DOI_BASE_URL=https://example.stfc.ac.uk/
ICAT_SESSION_PATH=/icat/session/
ICAT_AUTHENTICATOR_NAME=simple
ICAT_CHECK_CERT=False
SSL_CERT_VERIFICATION=False

DATACITE_PREFIX=10.5286
DATACITE_URL=https://api.test.datacite.org/dois
DATACITE_USERNAME=BL.STFC

141 changes: 0 additions & 141 deletions .github/dependabot.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Features
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependencies
labels:
- dependencies
Loading

0 comments on commit f1d5830

Please sign in to comment.