Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
542 commits
Select commit Hold shift + click to select a range
c59d048
Update contributing.md
PGijsbers Apr 4, 2025
89a0e86
Update contributing.md (#510)
PGijsbers Apr 4, 2025
793a4b5
[maint] minor dev improvements (#506)
PGijsbers Apr 4, 2025
213a766
Outline tests for my_resources endpoint
PGijsbers Apr 8, 2025
f5fb476
Add user router with resources endpoint
PGijsbers Apr 8, 2025
6811d9a
Return aiod entries for assets
PGijsbers Apr 8, 2025
1c1b8ba
Only count assets where user has administrator right as owned
PGijsbers Apr 8, 2025
94404cc
Add documentation about the review process (#503)
PGijsbers Apr 24, 2025
390208e
Merge branch 'develop' of https://github.com/aiondemand/AIOD-rest-api…
Taniya-Das May 1, 2025
3d7aad8
Merge branch 'develop' of https://github.com/aiondemand/AIOD-rest-api…
Taniya-Das May 2, 2025
1f114ad
add company revenue
Taniya-Das May 2, 2025
8cdf088
add docstring fo rallowed no of employees
Taniya-Das May 2, 2025
301a531
ruff formatting
Taniya-Das May 2, 2025
ffe77b4
add unittest
Taniya-Das May 2, 2025
9a03610
Update test to ensure it does return shared admin assets
PGijsbers May 7, 2025
36b7920
Return full assets, type hint disabled due to bug
PGijsbers May 7, 2025
461d023
Add OpenAPI Schema Response for user assets
PGijsbers May 7, 2025
3b0d4e6
Refactor fetching of schemas into shared function
PGijsbers May 7, 2025
00a2203
Add test to ensure asset details are returned
PGijsbers May 7, 2025
74c2c18
Provide more accurate description
PGijsbers May 7, 2025
d80de9b
constraint on value of no of employees and turnover value
Taniya-Das May 7, 2025
910419f
update tests
Taniya-Das May 7, 2025
3e4fe8e
update person (#505)
PGijsbers May 8, 2025
6276ade
Add access restriction to direct resource access
PGijsbers May 8, 2025
5423f8c
Make list only return published assets
PGijsbers Mar 24, 2025
d98e07b
Update the count endpoints to only count published assets
PGijsbers Mar 24, 2025
b10d568
Update tests to account for DRAFT being private in list and count
PGijsbers Apr 3, 2025
a17ce03
Rename to be more explicit about product of `factory_test_resource`
PGijsbers Apr 7, 2025
c5949f5
Add tests for access when asset is in draft
PGijsbers Apr 7, 2025
1cf9181
Anonymous users are now the default for `logged_in_user`
PGijsbers Apr 7, 2025
faddefd
Remove unused code
PGijsbers Apr 7, 2025
871df5c
Remove unused imports
PGijsbers Apr 7, 2025
b4b5948
Feat/read permissions (#509)
PGijsbers May 8, 2025
67919d8
Also prevent collaborator with write-right to review the asset
PGijsbers May 8, 2025
d3e8c4f
remove n/a from allowed values in number of employees
Taniya-Das May 8, 2025
ee3f846
Enh/own assets (#511)
PGijsbers May 8, 2025
a3c3fa2
Bump version
PGijsbers May 8, 2025
d917110
Bump version for v1.4.20250508 (#515)
PGijsbers May 8, 2025
a23c0b3
Add links to documentation pages from the REST API page (#508)
PGijsbers May 9, 2025
add20bb
Update formatting and content of release workflow
PGijsbers May 9, 2025
a4538f5
Set on-update cascade to allow changing identifiers
PGijsbers May 12, 2025
8ef2a89
alembic migration
Taniya-Das May 12, 2025
95d91d9
ruff
Taniya-Das May 12, 2025
812bc9d
Define onupdate cascade on child classes to verify it works
PGijsbers May 13, 2025
0c0d50f
Define agent_id again on the agent level for reusability
PGijsbers May 13, 2025
517ae44
Create update triggers to keep identifiers in sync
PGijsbers May 14, 2025
c10e0aa
Define synchronization triggers in a uniform way
PGijsbers May 14, 2025
8ccab10
Fix typo
PGijsbers May 14, 2025
a5b68b8
Start migration: backup tables and foreign key updates
PGijsbers May 14, 2025
d9e4c10
Include data migration for new identifiers
PGijsbers May 14, 2025
0efa06f
Improve the identifier maps
PGijsbers May 14, 2025
a35816e
Provide asset type alongside the asset for easier parsing
PGijsbers May 16, 2025
632907f
Group assets by type
PGijsbers May 16, 2025
680446b
Always return all asset types, even if empty
PGijsbers May 16, 2025
0c5b6ab
Define a response model for deserialization and doc generation
PGijsbers May 16, 2025
e7fefea
Filter out deleted assets
PGijsbers May 16, 2025
b9bceda
Add more clarification
PGijsbers May 16, 2025
55b15c2
Update README.md
joaquinvanschoren May 19, 2025
7eae455
Update README.md
joaquinvanschoren May 19, 2025
0906622
Add clarifications and embed tutorial video
PGijsbers May 20, 2025
e11e875
Towards AI-on-Demand styling
PGijsbers May 20, 2025
acf8726
Add color styles
PGijsbers May 20, 2025
8f3420a
Doc styling and minor changes (#526)
PGijsbers May 20, 2025
a4c68d2
Update formatting and content of release workflow (#517)
PGijsbers May 20, 2025
aac712d
Add versionless and versioned path for count
PGijsbers May 26, 2025
a54eb56
Add versionless and versioned endpoint authorization_test
PGijsbers May 26, 2025
adbe32d
Add versioned reviewing endpoints
PGijsbers May 26, 2025
024f216
Add versionless and versioned endpoints for resource router
PGijsbers May 26, 2025
578f85c
Add versionless and versioned endpoints to parent router
PGijsbers May 26, 2025
1173219
Provide versioned and versionless endpoints for search
PGijsbers May 26, 2025
b380163
Provide versioned and versionless endpoints for enums
PGijsbers May 26, 2025
5991497
Versioned and versionless endpoints for platforms
PGijsbers May 26, 2025
4ef85d5
Fix or add versioned and versionless endpoints
PGijsbers May 26, 2025
ae51aef
[SKIPPED TESTS] Parametrize Client
PGijsbers May 26, 2025
3194a44
[SKIPPED TEST] updated endpoints
PGijsbers May 26, 2025
ff7d37c
[TESTS SKIPPED] rewrite tests to new url
PGijsbers May 26, 2025
79229a2
[TESTS SKIPPED] Update urls in tests
PGijsbers May 26, 2025
56e731d
[TESTS SKIPPED] Update URLs
PGijsbers May 26, 2025
690dc01
Convert URL in test
PGijsbers May 26, 2025
5ee0573
Add ability to run tests only for specific version
PGijsbers May 26, 2025
5bb9464
Add migration guide to documentation
PGijsbers May 27, 2025
dcfe4a3
Add an option to disable the review process
PGijsbers May 28, 2025
4b2bcda
Mention the option in the documentation
PGijsbers May 28, 2025
3b765e9
Also prevent collaborator with write-right to review the asset (#514)
PGijsbers May 29, 2025
003eda5
Add deprecation and sunset headers
PGijsbers May 29, 2025
1fd5273
Remove old deprecation mechanism
PGijsbers May 29, 2025
5556bc1
Add a test to ensure v1 endpoint has a deprecation warning
PGijsbers May 29, 2025
f8b6baf
Ensure the latest versions do not issue warnings
PGijsbers May 29, 2025
f4f635f
Add version 2, deprecate version 1 (#531)
PGijsbers May 29, 2025
375781a
Add an option to disable the review process (#532)
PGijsbers May 29, 2025
cf89311
Merge branch 'develop' into enh/add-asset-type
PGijsbers May 29, 2025
fbef514
Provide assets by asset type alongside easier parsing (#523)
PGijsbers May 29, 2025
886fcec
Version bump
PGijsbers May 29, 2025
6cfa362
Only start nginx with appropriate profile
PGijsbers May 29, 2025
b9b3c9f
Move keycloak configuration/defaults to its own directory
PGijsbers May 29, 2025
3a61035
Prepare new release (#533)
PGijsbers May 29, 2025
80c4dfa
Move skip review to configuration file
PGijsbers May 30, 2025
7c56f25
Move build database setting to configuration
PGijsbers May 30, 2025
9f1e597
Move reload option to config, removing url prefix option
PGijsbers May 30, 2025
ed21fbc
Move url_prefix option to configuration files
PGijsbers May 30, 2025
16aeae8
Version bump
PGijsbers May 30, 2025
79dca9c
Move command line options to configuration file (#534)
PGijsbers May 30, 2025
dfb8d7d
Use string identifiers with a prefix instead
PGijsbers Jun 11, 2025
6447c59
Add logging, bugfixes
PGijsbers Jun 11, 2025
7ae1ab7
Generate a random 24-character identifier for each asset, not used
PGijsbers Jun 11, 2025
40cd13e
Use the new random identifier everywhere
PGijsbers Jun 11, 2025
35328fd
Read works, upload fails due to identifier generation
PGijsbers Jun 12, 2025
3698214
don't create identifier sync trigger
PGijsbers Jun 12, 2025
a95054f
Generate the agent identifier
PGijsbers Jun 12, 2025
7561d20
Disable identifier generation again??
PGijsbers Jun 12, 2025
f769290
Works with monkey test
PGijsbers Jun 12, 2025
4c48749
Updating tests to account for new identifiers
PGijsbers Jun 12, 2025
e3e243d
progress updating tests for str identifiers
PGijsbers Jun 12, 2025
67ae3f6
Migrating to string identifiers
PGijsbers Jun 12, 2025
0ffc378
Add triggers for SQLite database in tests
PGijsbers Jun 13, 2025
b718811
Fix some additional tests with new string identifiers
PGijsbers Jun 13, 2025
5cc18b4
Fix tests to use the new string identifiers
PGijsbers Jun 13, 2025
dca5911
Fix parent routers and resource routers
PGijsbers Jun 13, 2025
eb7b93b
Migration to random string identifiers
PGijsbers Jun 13, 2025
bf884a2
Fix updating keys for linked assets
PGijsbers Jun 13, 2025
04a3489
Merge branch 'develop' into enh/one-identifier-org-person
PGijsbers Jun 14, 2025
0b7348a
Fix pre-commit issues
PGijsbers Jun 14, 2025
f646694
collate the identifier columns to make them case sensitive
PGijsbers Jun 14, 2025
8d5b6c3
Match expected form of identifiers more closely
PGijsbers Jun 14, 2025
fc3c521
break up creating mapping table and the conversion actions
PGijsbers Jun 14, 2025
4958d61
Globally Unique Identifiers (#519)
PGijsbers Jun 14, 2025
3fa9b34
Disable the check contraint, was mistakingly commented out
PGijsbers Jun 14, 2025
0965674
Disable the check contraint, was mistakingly commented out (#540)
PGijsbers Jun 14, 2025
276a68b
Update ES indexing for string identifierl
PGijsbers Jun 20, 2025
25b0df2
Update ES indexing for string identifier (#541)
PGijsbers Jun 21, 2025
0c47de5
The distribution references an asset with string identifiers
PGijsbers Jun 24, 2025
058a0a0
Namedrelations do not yet have string identifiers
PGijsbers Jun 24, 2025
ccdbe8e
Notes always reference AI Resources, which have str identifiers
PGijsbers Jun 24, 2025
d5cd20a
A runnable distribution references an asset with str identifier
PGijsbers Jun 24, 2025
84925d9
Make knowledge asset also have a str identifier to follow other parents
PGijsbers Jun 24, 2025
ab0e0ea
Add migration script for knowledge asset
PGijsbers Jun 24, 2025
2fdb17d
Add knowledge asset to the synchronization triggers
PGijsbers Jun 24, 2025
bf0cbe8
Make sure each knowledge asset gets an entry in the parent table
PGijsbers Jun 24, 2025
33fa729
Update alembic script to set new identifiers for knowledge assets
PGijsbers Jun 24, 2025
7c296a4
Fix/identifiers (#542)
Taniya-Das Jun 24, 2025
ddd29cb
Add support for Taxonomies (#539)
Taniya-Das Jun 27, 2025
0cad50e
Restrict setting platfrom and platfrom_resource_identifier (#516)
Taniya-Das Jun 27, 2025
76cef55
drop uploaders
Taniya-Das Jun 28, 2025
048362e
bookmark model and router
Taniya-Das Jun 30, 2025
63187cd
drop uploaders (#558)
Taniya-Das Jun 30, 2025
acd02db
fix format errors
Taniya-Das Jun 30, 2025
52a541a
Enh/add date modified documentation (#559)
Taniya-Das Jul 1, 2025
b0040eb
Taxonomy on startup (#561)
PGijsbers Jul 3, 2025
01bd27c
limited router functionality
Taniya-Das Jul 3, 2025
046e46d
validate identifier given by the user
Taniya-Das Jul 3, 2025
b806bdf
Add `AIResource.contacts` with full contact information (#564)
PGijsbers Jul 4, 2025
a900f06
Dont validate taxonomy for connectors (#565)
PGijsbers Jul 4, 2025
c04f3be
Make connector work with taxonomies (#566)
PGijsbers Jul 7, 2025
12e2b2e
add pytest, correct bookmark router
Taniya-Das Jul 7, 2025
78f55f4
foreign key constraint on user column
Taniya-Das Jul 8, 2025
72e69e5
merge conflict resolve
Taniya-Das Jul 8, 2025
77d427f
add delete trigger
Taniya-Das Jul 8, 2025
de58973
Source from override file as well (#546)
PGijsbers Jul 9, 2025
24ee2c2
Update examples (#568)
PGijsbers Jul 9, 2025
3d9efce
bump version for release (#569)
PGijsbers Jul 9, 2025
07e58ce
uploaders removed
Taniya-Das Jul 9, 2025
13b6fdd
minor fixes
Taniya-Das Jul 9, 2025
195d04a
remove bookmarkbase class and bookmark.id
Taniya-Das Jul 9, 2025
ef09294
add and reuse utility functions, other fixes
Taniya-Das Jul 10, 2025
4ba7fc6
separate out diff tests + better asserts
Taniya-Das Jul 14, 2025
d74ce4d
separate tests and improve assert statement
Taniya-Das Jul 14, 2025
4ffd7bb
correcting path in methods
Taniya-Das Jul 14, 2025
dba6d16
update test
Taniya-Das Jul 14, 2025
e0a9102
Fix issue when syncing with new child definitions (#571)
PGijsbers Jul 18, 2025
7fb4789
Remove the schemaorg dependencies since it is not used (#574)
PGijsbers Jul 22, 2025
b9bc2fa
Request more metadata for changelog entries to the PR template (#575)
PGijsbers Jul 22, 2025
c0a92dc
Remove V1 (#562)
PGijsbers Jul 22, 2025
d6a835d
Update src/routers/bookmark_router.py
PGijsbers Jul 23, 2025
0c2f4b7
Update src/routers/bookmark_router.py
PGijsbers Jul 23, 2025
344f68d
Let insert statement detect duplicates instead
PGijsbers Jul 23, 2025
557e9df
Simplify the delete operation and make create similar again
PGijsbers Jul 23, 2025
b1460ff
Update src/routers/bookmark_router.py
PGijsbers Jul 23, 2025
6b515ac
bookmark model and router (#560)
Taniya-Das Jul 23, 2025
2f277ed
Add platform_NAME role description. (#576)
PGijsbers Aug 1, 2025
da8f6aa
Provide seperate documentation pages for each API version (#577)
PGijsbers Aug 1, 2025
a2f3dde
Merge branch 'develop' into enh/update_organisation
PGijsbers Aug 6, 2025
8222f2b
Update alembic migration to be on top of current HEAD
PGijsbers Aug 6, 2025
8bd0fbe
Make last bound inclusive so as not to exclude 250
PGijsbers Aug 6, 2025
3b3e407
Define separate relation for EmployeeCount
PGijsbers Aug 6, 2025
30595bf
Update test cases to use the taxonomies
PGijsbers Aug 6, 2025
07d8306
Rename taxonomies back to match the general name and separate testcas…
PGijsbers Aug 6, 2025
ee5e301
Remove unused imports
PGijsbers Aug 6, 2025
0c2c9f9
Update migration
PGijsbers Aug 6, 2025
6ddfbad
add generic asset endpoint, deprecate parent router (#578)
Taniya-Das Aug 6, 2025
c5a1767
Update `organisation` (#507)
Taniya-Das Aug 6, 2025
2950462
Image Upload (#570)
Taniya-Das Aug 8, 2025
4fe94a2
Merge remote-tracking branch 'origin/develop' into feat/generate_json…
Taniya-Das Aug 13, 2025
4cf4345
update metadata model
Taniya-Das Aug 13, 2025
2730699
update branch with develop, new comparision results
Taniya-Das Aug 13, 2025
866c976
ruff formatting
Taniya-Das Aug 13, 2025
c31a481
Add mechanism for versioning resource schemas (#580)
PGijsbers Aug 18, 2025
2ca0ebb
Project 'total_cost_euro' renamed to 'project_cost_euros' (#594)
PGijsbers Aug 20, 2025
4f169ab
Add `/stats` and `/metrics` endpoints and monitoring services (#581)
mardalla Aug 21, 2025
8a944fc
Bump version (#595)
PGijsbers Aug 22, 2025
921f130
Fix an issue where routing behind a proxy with a prefix wouldn't work…
PGijsbers Sep 2, 2025
4d6aee7
Add pagination to `/bookmarks` (#602)
PGijsbers Sep 3, 2025
b866ded
Add pagination to `user/resources` (#601)
PGijsbers Sep 4, 2025
136ae43
Do not allow uploading of `binary_blob` through generic `POST` and `P…
PGijsbers Sep 4, 2025
8c685c2
Fixed an issue where syncing a taxonomy failed. (#608)
PGijsbers Sep 5, 2025
b5db59e
Introduce `__plural__` attribute on model classes to denote the spell…
PGijsbers Sep 9, 2025
b3586d5
Do not allow uploading of `binary_blob` in `distribution` field. (#610)
PGijsbers Sep 9, 2025
00a02a9
Bump to version 2.0.20250911 (#614)
PGijsbers Sep 11, 2025
bd3e0fa
Added taxonomies: Organisation Type, Organisation Activity Type, Lea…
PGijsbers Sep 16, 2025
ad08968
Added a client for the Python SDK to the default aiod realm. (#615)
PGijsbers Sep 17, 2025
b4e67f5
Introduce one endpoint for all review requests: `/submissions` (#613)
PGijsbers Sep 18, 2025
ae3ab0b
Use a distinct error for requests with invalid identifiers (#612)
PGijsbers Sep 19, 2025
d98475b
Add a client that allows service accounts to connect (#618)
PGijsbers Sep 19, 2025
bbcc215
Accounts identified as connectors now bypass the review process and a…
PGijsbers Sep 19, 2025
7e6cc4c
Fixed an issue where a new user could not create a bookmark. (#620)
PGijsbers Sep 24, 2025
eba7e7f
Added required_educational_competency to Educational Resources, enfor…
PGijsbers Sep 29, 2025
37f3e7f
Bump version (#627)
PGijsbers Sep 29, 2025
05d27a5
Fixed an issue where docker may create `src/config.override.toml` as …
PGijsbers Sep 30, 2025
9e2e286
Fix a bug where a location could not be returned if it had an address…
PGijsbers Oct 2, 2025
ff24e3c
OpenAPI spec's `server` now works behind a (single) proxy. (#628)
PGijsbers Oct 3, 2025
c57942c
Fix an issue that would crash the synchronization of a taxonomy if a …
PGijsbers Oct 3, 2025
9d45ff8
Fixed a bug where a connector couldn't update its assets. (#631)
PGijsbers Oct 3, 2025
8acca8a
Extended the maximum length of a relevant_link of AI resources from 2…
PGijsbers Oct 21, 2025
785e2b6
Allow users to configure permissions for their assets (#638)
PGijsbers Oct 28, 2025
79080e4
Add subtitle and funding_link fields to projects (#640)
PGijsbers Oct 29, 2025
947c023
Fix issues that prevented successful deployment (#639)
PGijsbers Oct 29, 2025
668d60c
Update docs (#634)
PGijsbers Oct 29, 2025
9a70e2e
Centralize encoding of binary blob, do not return binary for `/resour…
PGijsbers Oct 29, 2025
d4f60df
Add AI paradigms and `falls_under_paradigm` property (#643)
PGijsbers Oct 29, 2025
de3cbb5
Set defaults for `ADMIN` and `REVIEWER` roles (#645)
PGijsbers Oct 30, 2025
13e5fc5
Change the maximum length of `Event.registration_link` from 256 to 18…
PGijsbers Oct 30, 2025
740c8b9
Deleted assets are now no longer included in responses of other asset…
PGijsbers Oct 30, 2025
4e47763
Bump version (#647)
PGijsbers Oct 30, 2025
2e4d4a2
Users can now update assets with attached media that contains images.…
PGijsbers Nov 5, 2025
b5ebc3d
Projects can now have images similar to Organisations. (#650)
PGijsbers Nov 5, 2025
c595bd5
Bump version to 20251105 (#651)
PGijsbers Nov 5, 2025
732238d
Add sorting to listing endpoints (#653)
PGijsbers Nov 13, 2025
c7c34da
Add `assets/permissions/{identifier}` endpoint that can be used to re…
PGijsbers Nov 13, 2025
0fe3160
Bump version to 2.1.20151113 (#656)
PGijsbers Nov 13, 2025
a54bd79
Merge branch 'develop' into feat/generate_json_schema
PGijsbers Nov 14, 2025
a59d849
fix the typo contributing.md (#662)
naman9271 Nov 18, 2025
70c3ee1
Towards comparison tool
PGijsbers Nov 19, 2025
862416a
Add sort order for rows
PGijsbers Nov 19, 2025
94e0871
Fix property rename lookups
PGijsbers Nov 19, 2025
52b08dc
Take note of additional renames
PGijsbers Nov 20, 2025
59ad529
Remove old files
PGijsbers Nov 20, 2025
31ce3f1
Move to script directory and add readme
PGijsbers Nov 20, 2025
be7a5e2
Use argparse
PGijsbers Nov 20, 2025
c949d81
Allow differences to be reported for a single class only
PGijsbers Nov 20, 2025
0496c68
Update variable names for clarity
PGijsbers Nov 20, 2025
7a5d00c
Generate json schema on the implemented metadata model (#465)
mardalla Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 31 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,26 @@ KEYCLOAK_CLIENT_SECRET="QJiOGn09eCEfnqAmcPP2l4vMU8grlmVQ"
REDIRECT_URIS=http://${HOSTNAME}/docs/oauth2-redirect
POST_LOGOUT_REDIRECT_URIS=http://${HOSTNAME}/aiod-auth/realms/aiod/protocol/openid-connect/logout
AIOD_KEYCLOAK_PORT=8080
REVIEWER_ROLE_NAME=review_aiod_resources
ADMIN_ROLE_NAME=admin_aiod_resources

EGICHECKINALIAS=

#AIBUILDER
AIBUILDER_API_TOKEN=""

#ELASTICSEARCH
ES_USER=elastic
ES_PASSWORD=changeme
ES_DISCOVERY_TYPE=single-node
ES_ROLE="edit_aiod_resources"
ES_JAVA_OPTS="-Xmx256m -Xms256m"
AIOD_ES_HTTP_PORT=9200
AIOD_ES_TRANSPORT_PORT=9300

#LOGSTASH
LS_JAVA_OPTS="-Xmx256m -Xms256m"
AIOD_LOGSTASH_BEATS_PORT=5044
AIOD_LOGSTASH_PORT=5000
AIOD_LOGSTASH_PORT=5001
AIOD_LOGSTASH_API_PORT=9600

#NGINX
Expand All @@ -41,3 +45,28 @@ AIOD_NGINX_PORT=80
#DATA STORAGE
DATA_PATH=./data
BACKUP_PATH=./data/backups

#PROMETHEUS and GRAFANA
AIOD_PROMETHEUS_PORT=9090
AIOD_GRAFANA_PORT=3000

# MONITORING STORAGE
PROMETHEUS_DATA_PATH=./data/prometheus
GRAFANA_DATA_PATH=./data/grafana

# PROMETHEUS RETENTION
PROMETHEUS_RETENTION=7d

# GRAFANA DEMOS AUTH
GF_AUTH_ANONYMOUS_ENABLED=true
GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
GF_SECURITY_ADMIN_PASSWORD=admin

# GRAFANA
GRAFANA_PROMETHEUS_URL=http://prometheus:9090

GRAFANA_MYSQL_HOST=sqlserver
GRAFANA_MYSQL_PORT=3306
GRAFANA_MYSQL_DB=aiod
GRAFANA_MYSQL_USER=root
GRAFANA_MYSQL_PASSWORD=${MYSQL_ROOT_PASSWORD}
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 🐛 Bug report
about: Create a report to help us fix it!
title: ''
labels: bug, triage
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**Error Reference**
Please indicate which server you were connecting to (e.g., api.aiod.eu).
If the server provided a reference code, please provide it (a hexadecimal string, like `d47cb85f6cf64c158dbb65e1a891903f`).

**To Reproduce**
Please provide a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). Preferably a (set of) complete queries which do not behave as expected.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ updates:
schedule:
interval: "daily"
# Labels on pull requests for version updates only
labels:
labels:
- "pip dependencies"
39 changes: 39 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
Please carefully follow the instructions of the template, as they allow for more effective reviews with fewer back-and-forth, making a smoother process for everyone.
Prefer small, independent PRs over big monolithic ones when possible.
If you are only looking for feedback, clearly indicate this and open it as a "draft" instead (use the green "v" button next to "create pull request").
-->


## Change(s)
<!-- Briefly describe the change of this PR, if there are multiple changes, please describe them separately. -->
Change Type: <!-- Added/Changed/Deprecated/Removed/Fixed/Security -->

Change Category: <!-- Documentation/Interface/Internal/Other -->

Changelog Entry: <!-- Brief description of the change, possibly followed by more details in a separate paragraph. For example: -->

<!--
Added the `contacts` field to the `AIResource` `GET` endpoints with full contact information.

This field contains the full contact information of the contacts whose identifiers are currently already provided through the `contact` field.
-->



## How to Test
<!-- Describe a way to test the change of this PR if it requires special steps beyond CI/CD. You're writing this for the reviewer. -->

## Checklist
- [ ] Tests have been added or updated to reflect the changes, or their absence is explicitly explained. <!-- For code changes -->
- [ ] Documentation has been added or updated to reflect the changes, or their absence is explicitly explained.
- [ ] A self-review has been conducted checking:
- No unintended changes have been committed.
- The changes in isolation seem reasonable.
- Anything that may be odd or unintuitive is provided with a GitHub comment explaining it (but consider if this should not be a code comment or in the documentation instead).
- [ ] All CI checks pass before pinging a reviewer, or provide an explanation if they do not.
- [ ] The PR title matches the changelog entry's one-line description.

## Related Issues
<!-- Provide a list of relevant issues and/or pull requests, if any. -->
<!-- If the pull request closes and issue, specify "Closes #X" (where X is the issue number). -->
8 changes: 4 additions & 4 deletions .github/workflows/dockerized-tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Docker - build, test, push

# This workflow will build docker image and run tests inside the container.
# This workflow is only executed if there is pull request with change in pyproject.toml dependencies,
# or in Dockerfile, or in docker workflow.
# This workflow is only executed if there is pull request with change in pyproject.toml dependencies,
# or in Dockerfile, or in docker workflow.

on:
pull_request:
Expand All @@ -17,8 +17,8 @@ on:

release:
types: [published]
# allows to manually start a workflow run from the GitHub UI or using the GitHub API.

# allows to manually start a workflow run from the GitHub UI or using the GitHub API.
workflow_dispatch:
inputs:
push-image:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: docs - build, deploy
on:
push:
branches:
- main
- develop
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch full git history for mkdocs-git-revision-date-localized-plugin.
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
# We need to install not just the doc dependencies but also the package itself
# since it has the docs/tools/asset_type_replacer plugin.
- run: python -m pip install -e ".[docs]"
- run: python -m mkdocs gh-deploy --force
15 changes: 5 additions & 10 deletions .github/workflows/pytest-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This workflow will install Python dependencies, run tests and pre-commit hook with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Run Unit Test via Pytest
name: Run Unit Test via Pytest

on:
pull_request:
branches: [ "develop" ]
# allows to manually start a workflow run from the GitHub UI or using the GitHub API.
# allows to manually start a workflow run from the GitHub UI or using the GitHub API.
workflow_dispatch:

permissions:
Expand All @@ -21,15 +21,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
- name: Setup Python virtual environment
run: |
python3.11 -m venv venv
source venv/bin/activate

- name: Install dependencies
run: |
source venv/bin/activate
Expand All @@ -40,8 +40,3 @@ jobs:
run: |
source venv/bin/activate
pre-commit run --all





2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ logstash/config/pipeline
logstash/config/sql


# MacOS
# MacOS
.DS_Store

# Byte-compiled / optimized / DLL files
Expand Down
37 changes: 23 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@

repos:
- repo: https://github.com/psf/black
rev: 22.12.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the ref you want to point at
hooks:
- id: black
- id: no-commit-to-branch
- id: check-added-large-files
- id: check-illegal-windows-names
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: debug-statements
- id: check-json
- id: check-toml
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
files: "(docs|.github/ISSUE_TEMPLATE)/.*"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.9.7
hooks:
- id: ruff # only do linting for security for now
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
Expand All @@ -19,19 +36,11 @@ repos:
- types-pytz
- types-requests
- types-setuptools
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
name: flake8 src
files: src/.*
additional_dependencies:
- flake8-print==5.0.0
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest src/tests
entry: pytest src/tests --versions 'latest'
language: system
pass_filenames: false
exclude: ".*.md"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ COPY ./src /app
RUN groupadd -r apprunner && \
useradd -mg apprunner apprunner \
&& chown -R apprunner:apprunner /app
USER apprunner:apprunner
USER apprunner:apprunner
48 changes: 0 additions & 48 deletions alembic/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion alembic/alembic/README
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Generic single-database configuration.
Generic single-database configuration.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Extend max length of text in note

Revision ID: 0a23b40cc09c
Revises:
Revises:
Create Date: 2024-08-29 11:37:20.827291

"""

from typing import Sequence, Union

from alembic import op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-10-31 16:37:23.196383

"""

from typing import Sequence, Union

from alembic import op
Expand Down
Loading