Skip to content

Commit

Permalink
Merge branch 'main' into backend-configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Jun 4, 2024
2 parents 86805ad + 7546281 commit dcfd4b2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
types_or: [css, javascript]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions src/pyflask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def get(self):
)
log_handler.setFormatter(log_formatter)

flask_app.logger.addHandler(log_handler)
flask_app.logger.setLevel(DEBUG)
api.logger.addHandler(log_handler)
api.logger.setLevel(DEBUG)

flask_app.logger.info(f"Logging to {LOG_FILE_PATH}")
api.logger.info(f"Logging to {LOG_FILE_PATH}")

# Run the server
api.logger.info(f"Starting server on port {port}")
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/dandi-create.schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import create from './json/dandi/create.json' assert { type: "json" }
import create from './json/dandi/create_no_embargo.json' assert { type: "json" }
const schema = structuredClone(create)

export default schema
60 changes: 60 additions & 0 deletions src/schemas/json/dandi/create_no_embargo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"order": [
"title",
"archive",
"embargo_status",
"description",
"license"
],
"properties": {

"title": {
"type": "string",
"description": "Provide a title for this Dandiset. The title will appear in search results and at the top of the home page for this Dandiset, so make it concise and descriptive"
},

"archive": {
"type": "string",
"enumLabels": {
"staging": "Development Server",
"main": "Main Archive"
},
"enum": ["main", "staging"],
"description": "Which DANDI server to upload to. <br><small><b>Note:</b> The Development Server is recommended for developers, or users learning to use DANDI</small>"
},

"description": {
"type": "string",
"description": "Provide a description for this Dandiset. This will appear prominently under the title in the home page for this Dandiset."
},

"license": {
"type": "array",
"description": "Provide a set of licenses for this Dandiset. Review the individual licenses and select the one that best fits your needs.",
"items": {
"type": "string",
"enumLinks": {
"spdx:CC0-1.0": "https://creativecommons.org/public-domain/cc0/",
"spdx:CC-BY-4.0": "https://creativecommons.org/licenses/by/4.0/deed.en"
},
"enumKeywords": {
"spdx:CC0-1.0": ["No Rights Reserved"],
"spdx:CC-BY-4.0": ["Attribution 4.0 International"]
},
"enumLabels": {
"spdx:CC0-1.0": "CC0 1.0",
"spdx:CC-BY-4.0": "CC BY 4.0"
},
"enum": [
"spdx:CC0-1.0",
"spdx:CC-BY-4.0"
]
},
"maxItems": 1,
"uniqueItems": true,
"strict": true
}

},
"required": ["title", "description", "license", "archive"]
}

0 comments on commit dcfd4b2

Please sign in to comment.