Skip to content
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

update version #3

Open
wants to merge 611 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
611 commits
Select commit Hold shift + click to select a range
be616df
Implementation of enpoint tests for entity batch operations.
Mar 20, 2024
0faf8d5
Added test for entity attribute.
Mar 25, 2024
1a7c111
Testcase for endpoint, patch attribute of entity.
Mar 26, 2024
55ae419
Progress in patch entity attribute and patch entity attribute id.
Mar 27, 2024
801f920
Test for ngsi-ld endpoint functions for entity attributes.
Apr 3, 2024
8f98032
Test for NGSI-LD endpoint subscription (get all subscriptions).
Apr 10, 2024
e45350b
Progress enpoint test for subscription (delete subscription).
Apr 10, 2024
3b9a499
Added mqqt endpoint for subscriptions.
May 15, 2024
7f91357
Updates for subscription unittests.
Jun 12, 2024
5aec1fe
get tests run (with tons of warnings and fails, though)
iripiri Mar 13, 2024
a8ba3f2
[WIP] fix existing NGSI-LD tests
iripiri Mar 15, 2024
2286ddd
[WIP] fix exitsting NGSI-LD implementation and tests
iripiri Mar 19, 2024
00106b7
[WIP] get NGSI-LD tests to run
iripiri Mar 26, 2024
cb632eb
run NGSI-LD batch tests, revise implementation
iripiri Apr 9, 2024
1736e2f
fixed small error after merge
iripiri Apr 9, 2024
05bbb4d
added teardown, updated get/post/delete tests and corresponding imple…
iripiri Apr 11, 2024
18820a3
add/patch attributes
iripiri Apr 18, 2024
62c870d
run all entity tests
iripiri Apr 26, 2024
181c5a7
chore:
matzeteupel Feb 27, 2024
94a9bd5
chore:
matzeteupel Mar 4, 2024
ab16e48
chore:
matzeteupel Mar 20, 2024
74bd947
feat: add validation function for LD properties
djs0109 Mar 20, 2024
f15303c
chore: change default value of by_alias in model_dump
djs0109 Mar 20, 2024
c71f3e1
fix:
matzeteupel Apr 3, 2024
1467065
chore: implement tests for LD subscription
djs0109 Mar 20, 2024
5bf544a
chore:
matzeteupel Apr 4, 2024
27d2c8e
chore: add todo for clean test
djs0109 Apr 9, 2024
65e405e
feat: add validator for temporal query
djs0109 Apr 9, 2024
cfa53dc
feat: test for temporal query
djs0109 Apr 9, 2024
7de0751
Use Relocated FiwareRegex
matzeteupel Apr 12, 2024
b3da0b3
chore:
matzeteupel Apr 17, 2024
ab8cfb4
chore:
matzeteupel Apr 18, 2024
a1a0eab
chore:
matzeteupel Apr 25, 2024
20c7062
chore: add test cases for subscription model
djs0109 Apr 24, 2024
e753eab
fixes after datamodel changes
iripiri May 15, 2024
ea2ac62
update cb implementation for subscriptions
iripiri Jun 13, 2024
eebfd5f
chore: remove unused package in cb_test for v2
djs0109 Jun 12, 2024
13fcf93
feat: add LD_CB_URL as new environment variables in tests
djs0109 Jun 12, 2024
855f425
chore: adjust type hint
djs0109 Jun 12, 2024
251879e
fixes to entity tests and implementation after review
iripiri Jun 24, 2024
5cbdf40
chore: use environment variables from settings
djs0109 Jun 25, 2024
ec471e4
Re-organize and expand subscription endpoint tests
iripiri Jul 1, 2024
43c9b44
fix: remove unset fields in batch operations
djs0109 Jun 26, 2024
1c81c67
docs: adapt doc strings for some tests
djs0109 Jul 2, 2024
aedd162
cleanup delete test and test descriptions
iripiri Jul 3, 2024
6ac23d8
chore: change default tenant in header
djs0109 Jul 10, 2024
6be7469
Added verification for the test_post_subscription_http test
Jul 11, 2024
f58482c
Added validation for Content-Type header
Jul 11, 2024
252a5f8
Added subscription test for mqtt endpoint
Jul 12, 2024
6eebe86
Adjusted timeout for mqtt notification test
Jul 15, 2024
d7749b8
Put broker callback tests into their own class
Jul 23, 2024
d7e88ee
Fixed missing quotes in Content-Type headers
Jul 24, 2024
9a99d7f
Fixed mistake in parsing ContextProperty when updating an entity
Jul 24, 2024
c2f65be
Fixed handling of context provision through Link header or @context f…
Jul 24, 2024
6c50d2f
chore: define mqtt broker url as param
djs0109 Jul 24, 2024
2fb0b71
fix: error caused by rebasing
djs0109 Jul 24, 2024
49d6dea
Merge remote-tracking branch 'origin/212-testcase-for-every-endpoint-…
djs0109 Jul 24, 2024
15ae3bd
chore: use internal mqtt broker url in settings
djs0109 Jul 24, 2024
d615adf
fix: caption and reference issues of the table
djs0109 Jul 26, 2024
76ea36d
Making expressionLanguage attribute optional in ServiceGroup and Devi…
RCX112 Jul 30, 2024
8412915
Adding tests for setting expression language to None in ServiceGroup …
RCX112 Jul 30, 2024
a5513c0
Fixing tutorial e8 of filip
RCX112 Jul 30, 2024
5bc93e3
chore: merge the same validation functions for expressionlanguage
djs0109 Jul 30, 2024
a990e7c
fix: make expressionlanguage optional
djs0109 Jul 30, 2024
11c0e30
Merge branch 'master' into 298--covered-field-for-more-general-notifi…
djs0109 Jul 30, 2024
1f83018
add `covered` to notification model
djs0109 Jul 30, 2024
91dbea8
chore: prepare release
djs0109 Jul 30, 2024
70006d6
[PYPI-RELEASE] release v0.5.0
djs0109 Jul 30, 2024
a2f4e67
fix: error caused by merge
djs0109 Jul 31, 2024
1eed3c2
fix: relax constraint to entity id
djs0109 Jul 31, 2024
b295598
chore: initial tenant and remove duplicated test
djs0109 Jul 31, 2024
4aae00e
Small fix of helper timeout function in subscription/broker tests
Jul 31, 2024
6fd2d03
added missing entity tests
iripiri Aug 13, 2024
ee9b413
Merge branch 'JOSS_submission' into 317-Changes-to-the-paper
djs0109 Aug 26, 2024
470c22b
chore: adapt paper
djs0109 Aug 26, 2024
55771b4
chore: add DOI for pydantic
djs0109 Aug 26, 2024
2a8c55d
chore: integrate keyvalue update into existing functions
djs0109 Aug 27, 2024
70172d9
fix: example
djs0109 Aug 27, 2024
6c082ea
test: update attr with keyvalues
djs0109 Aug 27, 2024
d45a17b
chore: example to create secure fiware header
sbanoeon Aug 27, 2024
0145681
tests: adapt property validation and unit tests
Maghnie Sep 3, 2024
94cfe61
tests: remove property list example
Maghnie Sep 4, 2024
d0fa366
refactor: clarify property validator
Maghnie Sep 4, 2024
f06a3ac
Adjusted some test setups for proper expected results
Sep 4, 2024
801fefb
fix: rework batch operation
djs0109 Sep 4, 2024
a20a457
chore: rename batch operation method
djs0109 Sep 4, 2024
0803507
Merge remote-tracking branch 'origin/212-testcase-for-every-endpoint-…
djs0109 Sep 4, 2024
c0fdbb0
docs: update the readme for running unittest
djs0109 Sep 5, 2024
e5ced8c
Merge pull request #322 from RWTH-EBC/321-clarify-unit-test-workflow
djs0109 Sep 5, 2024
ee5a576
chore: minor update
djs0109 Sep 10, 2024
93d46e5
docs: add JOSS doi to readme
djs0109 Sep 13, 2024
a947af0
Merge pull request #324 from RWTH-EBC/JOSS_submission
djs0109 Sep 13, 2024
653daa3
fix: validate property then check for subproperties
Maghnie Sep 14, 2024
6205398
chore: remove extra print statement
Maghnie Sep 14, 2024
f8660a2
Merge pull request #318 from RWTH-EBC/281-Intergrade-the-keyValues-en…
sbanoeon Sep 16, 2024
47ac79a
Merge pull request #234 from RWTH-EBC/221-ngsi-ld-migrate-V2-datamode…
djs0109 Sep 17, 2024
9ec2987
chore: change behavior of auto adapting type
djs0109 Sep 17, 2024
9871b45
chore: change behavior of auto adapting type
djs0109 Sep 17, 2024
bd2ec60
Fixed inconsistent test results when testing noOverwrite
SystemsPurge Sep 17, 2024
23d5e82
Removed headers when querying management endpoints
SystemsPurge Sep 18, 2024
50fc878
Merge pull request #287 from RWTH-EBC/212-testcase-for-every-endpoint-1
djs0109 Sep 18, 2024
d705acd
feat: implement the rest geoproperty models
djs0109 Sep 18, 2024
edae39c
feat: add function to add geo_properties
djs0109 Sep 18, 2024
c65f0d9
Fixed entity batch update test
SystemsPurge Sep 19, 2024
baafa54
Consolidated batch upsert test. Using attributes instead of types
SystemsPurge Sep 19, 2024
6f79dff
Removed unnecessary code from batch operation tests
SystemsPurge Sep 19, 2024
07aa0d6
Temporarely re-wrote pagination test until some conflicts resolve
SystemsPurge Sep 19, 2024
5cafca0
Made object_id optional in the mqtt_client publish method
SystemsPurge Sep 24, 2024
f99807e
Added test for the optional object_id implementation
SystemsPurge Sep 24, 2024
3551611
chore: update the information in docs
djs0109 Oct 1, 2024
c853b32
feat: add example for notification based command
djs0109 Oct 1, 2024
5635f25
fix: change the oder of clean up
djs0109 Oct 1, 2024
f930fe3
chore: use object_id to send data if object_id is defined
djs0109 Oct 1, 2024
25c5f09
chore: add test for unregistered attribute name
djs0109 Oct 1, 2024
5acc5d5
Merge pull request #329 from RWTH-EBC/325-Filip-MQTT-Client-still-req…
djs0109 Oct 1, 2024
33bef2e
fix: validation of entity attributes
djs0109 Oct 2, 2024
0e72383
fix: change coordinates from list to tuple
djs0109 Oct 2, 2024
1a270a8
Adjusted checks on clear cb cleanup function to allow for client obje…
SystemsPurge Oct 8, 2024
3e527a9
Merge branch '300-ngsi-ld-revise-geoproperty-model' into 301-ngsi-ld-…
djs0109 Oct 8, 2024
acadd70
Merge pull request #332 from RWTH-EBC/289-Add-example-for-notificatio…
djs0109 Oct 8, 2024
9e8beff
fix: categorizing nested property
djs0109 Oct 8, 2024
18b23cc
docs: included comments
sbanoeon Oct 21, 2024
42a0de6
fix: get context properties
djs0109 Oct 22, 2024
891fcbf
Update CHANGELOG.md
djs0109 Oct 22, 2024
aefa83e
add: example to create secure fiware header
djs0109 Oct 22, 2024
79937c4
fix: get context
djs0109 Oct 22, 2024
8949dbe
fix: remove unnecessary clean up func from tests
djs0109 Oct 22, 2024
969f944
chore: remove unused tests
djs0109 Oct 22, 2024
9f14b86
chore: update test name for batch operation
djs0109 Oct 22, 2024
a19b161
chore: merge test ld_entities into ld_cb
djs0109 Oct 22, 2024
19bcedb
chore: remove unused code in cb client
djs0109 Oct 22, 2024
ca39bda
chore: rename update_format to options for batch operation
djs0109 Oct 22, 2024
afad423
chore: tiny changes
djs0109 Oct 22, 2024
9892d6f
fix: made fiware_header optional for uniformity
sbanoeon Oct 23, 2024
f5bce46
Changed to proper test cleanup function
SystemsPurge Oct 23, 2024
3f6b8d6
chore: use batch operations to clean up tests
djs0109 Oct 23, 2024
9040acf
chore: use headers from settings
djs0109 Oct 23, 2024
834176d
chore: rename test_pagination
djs0109 Oct 23, 2024
118747f
chore: quick fix for ld header typehint
djs0109 Oct 23, 2024
4dc2b6f
Merge pull request #334 from RWTH-EBC/327-Revise-NGSI-LD-batch-operat…
djs0109 Oct 23, 2024
5a7df93
test: included tests for cleanup utility functions
sbanoeon Oct 28, 2024
d6bd354
fix: add missing entity type
djs0109 Oct 29, 2024
d33e0d6
feat: add ql clear test
djs0109 Oct 29, 2024
5daeb1e
Merge branch 'master' into 331-Clean-up-function-of-CBC
djs0109 Oct 29, 2024
2ff69c7
docs: update changelog
djs0109 Oct 29, 2024
34355bf
Merge pull request #320 from RWTH-EBC/301-ngsi-ld-validate-nested-pro…
djs0109 Oct 29, 2024
e595806
fix: context cannot be set in code
djs0109 Oct 29, 2024
f6a7fda
Added inexistant tenant creation through posting of dummy entity
SystemsPurge Oct 29, 2024
ee798b4
Merge pull request #336 from RWTH-EBC/331-Clean-up-function-of-CBC
djs0109 Oct 29, 2024
2d9a8bc
Added raise in case entity creation fails
SystemsPurge Oct 29, 2024
c2f7dbb
feat: add context to standard downlink request results
djs0109 Oct 29, 2024
ec263c2
feat: first implementation of test for different contexts
djs0109 Oct 29, 2024
71554e6
feat: complete test for different context
djs0109 Oct 29, 2024
0ab3900
chore: adjust typehint for base http client
djs0109 Oct 30, 2024
80fa980
chore: implement a test for tenant creation
djs0109 Oct 30, 2024
373e183
Merge pull request #344 from RWTH-EBC/337-initial-tenant-when-tenant-…
djs0109 Oct 30, 2024
70c2c69
Merge branch 'NGSI-LD' into 339-test-link-header-for-ld
djs0109 Oct 30, 2024
ea48ff2
fix: merge error
djs0109 Oct 30, 2024
dcbf26c
fix: allow empty attribute type
djs0109 Oct 30, 2024
c58c3a2
chore: add clear code block for batch test
djs0109 Oct 30, 2024
13d9d3f
fix: batch tests
djs0109 Oct 30, 2024
871afb3
chore: update host and port for mqtt notification tests
djs0109 Oct 30, 2024
4326bbc
fix: update subscription model for status
djs0109 Nov 4, 2024
f1b16d7
fix: reduce the number of batch deleting to 100 for more stability
djs0109 Nov 4, 2024
b5098f0
fix: update attribut with noOverwrite
djs0109 Nov 4, 2024
3902dc4
chore: update review
djs0109 Nov 5, 2024
4957265
chore: use conventional id pattern
djs0109 Nov 5, 2024
47d7906
Merge pull request #345 from RWTH-EBC/339-test-link-header-for-ld
djs0109 Nov 5, 2024
d41ade3
chore: add value validation for limit
djs0109 Nov 5, 2024
3892916
chore: adapt test for entities_pagination
djs0109 Nov 5, 2024
0f034ba
feat: separate mqtt url for ngsi-ld
djs0109 Nov 5, 2024
bf56a78
Merge branch 'master' into 346-test-cluster-connection
djs0109 Nov 5, 2024
0990906
fix: add missing subpath in update attributes endpoint
djs0109 Nov 6, 2024
a3cf49b
chore: replace unnecessary list query
djs0109 Nov 6, 2024
b0c214a
chore: increase sleeping time for clear ql test
djs0109 Nov 6, 2024
eba6dce
chore: close the client after test finish
djs0109 Nov 6, 2024
0d5399f
feat: add retry strategy for ld cb tests
djs0109 Nov 6, 2024
613a647
chore: disable version and management endpoint test
djs0109 Nov 6, 2024
f5b6377
fix: usage of enum by urllib in py311
djs0109 Nov 6, 2024
d1783c0
Merge pull request #347 from RWTH-EBC/346-test-cluster-connection
djs0109 Nov 6, 2024
785fd9f
feat: add clear up for LD CB client
djs0109 Nov 12, 2024
1ffb16c
chore: rename ld subscription model
djs0109 Nov 12, 2024
f853298
chore: change clear up code to function
djs0109 Nov 12, 2024
0db5b10
feat: add test for cb ld clear
djs0109 Nov 12, 2024
2efafe8
Merge pull request #348 from RWTH-EBC/342-clean-up-functions-for-ngsi…
djs0109 Nov 12, 2024
7bf58ff
Added query language test for arbitrary q expressions
SystemsPurge Nov 14, 2024
13eba86
Changed python version incompatible code
SystemsPurge Nov 14, 2024
44de78b
Removed python version incompatible code
SystemsPurge Nov 14, 2024
4e07235
Added initial teardown to prep db
SystemsPurge Nov 14, 2024
0ec87c7
Merge remote-tracking branch 'origin/NGSI-LD' into 343-test-query-lan…
SystemsPurge Nov 14, 2024
7bf7b98
Unified parsing cases of q expressions
SystemsPurge Nov 15, 2024
8309a99
fix: validation error of ngsipayloadattr
djs0109 Nov 15, 2024
da7722c
fix: add exclude none in batch operation
djs0109 Nov 19, 2024
40886bb
chore: delete unused parameter in subscription
djs0109 Nov 19, 2024
1caed4f
chore: use clean up function and some minor changes
djs0109 Nov 19, 2024
a2f8eab
chore: use batch operation to create entities
djs0109 Nov 19, 2024
5f39488
chore: add not existed attr as condition
djs0109 Nov 19, 2024
102f0bd
chore: include pre-commit configuration
sbanoeon Nov 19, 2024
d40bb1c
chore: upgrate requests version
djs0109 Nov 19, 2024
e9c6b5d
build: include dependency for pre-commit
sbanoeon Nov 19, 2024
4e7d32e
chore: add test for attribute renaming in custom ngsi notification
djs0109 Nov 19, 2024
e90dd89
Added proper parsing and comparaison of date fields
SystemsPurge Nov 20, 2024
84ca24b
chore: update environment template for tests
djs0109 Nov 20, 2024
912dadd
chore: config of filip for ngsi-ld clients
djs0109 Nov 20, 2024
7d10fbe
chore: change example .env for ngsi-ld
djs0109 Nov 20, 2024
5e9211f
chore: use LD url in ld client
djs0109 Nov 20, 2024
5423f35
chore: change default port of ld to 1027
djs0109 Nov 20, 2024
20b3912
chore: minor change for readability
djs0109 Nov 20, 2024
21c954f
Merge pull request #349 from RWTH-EBC/343-test-query-language-for-ngs…
djs0109 Nov 20, 2024
6fcb3c4
fix: remove unsupported geo type, geometrycollection
djs0109 Nov 20, 2024
f7a48d4
feat: implement update entities option in post_entity to align with v…
djs0109 Nov 20, 2024
71404cc
Merge pull request #351 from RWTH-EBC/350-NgsiPayloadAttr-model-in-su…
djs0109 Nov 20, 2024
f624d33
Merge pull request #357 from RWTH-EBC/356-post-entity-has-an-unused-v…
djs0109 Nov 20, 2024
a2fc726
Added query language test for arbitrary q expressions
SystemsPurge Nov 14, 2024
d87a972
Changed python version incompatible code
SystemsPurge Nov 14, 2024
bc20cd2
Removed python version incompatible code
SystemsPurge Nov 14, 2024
130af75
Added initial teardown to prep db
SystemsPurge Nov 14, 2024
a983e35
Unified parsing cases of q expressions
SystemsPurge Nov 15, 2024
37f727e
fix: add exclude none in batch operation
djs0109 Nov 19, 2024
d45fc78
chore: delete unused parameter in subscription
djs0109 Nov 19, 2024
9ee3085
chore: use clean up function and some minor changes
djs0109 Nov 19, 2024
b7aee15
chore: use batch operation to create entities
djs0109 Nov 19, 2024
f50e0db
chore: add not existed attr as condition
djs0109 Nov 19, 2024
6512f88
Added proper parsing and comparaison of date fields
SystemsPurge Nov 20, 2024
c5cbd1e
chore: minor change for readability
djs0109 Nov 20, 2024
aa5701e
fix: remove unsupported geo type, geometrycollection
djs0109 Nov 20, 2024
c411be5
feat: implement update entities option in post_entity to align with v…
djs0109 Nov 20, 2024
8a1ed39
feat: add missing geometryProperty as query parameter to get entity
djs0109 Nov 20, 2024
2bcb286
chore: remove unused code and complete documentation for ld cb client
djs0109 Nov 20, 2024
a2803a5
chore: remove unsupported method
djs0109 Nov 20, 2024
6bad501
chore: add missing doc strings for ld models
djs0109 Nov 20, 2024
c80376a
feat: add delete relationships
djs0109 Nov 20, 2024
fb5ad31
chore: delete outdated todos
djs0109 Nov 20, 2024
bc31259
docs: update readme
djs0109 Nov 21, 2024
8b78819
Merge pull request #358 from RWTH-EBC/338-pre-release-filip-ld
djs0109 Nov 21, 2024
276d640
Merge branch 'NGSI-LD' into 359-pre-release-060
djs0109 Nov 21, 2024
57550d0
docs: update release note
djs0109 Nov 26, 2024
6cc3a75
Merge pull request #355 from RWTH-EBC/353-Upgrade-requests-version
sbanoeon Nov 26, 2024
8c9ac76
Merge branch 'master' into 359-pre-release-060
djs0109 Nov 27, 2024
29b7340
chore: update version
djs0109 Nov 27, 2024
ac48754
chore: delete registration in clear_all
djs0109 Nov 27, 2024
f4be3e6
[PYPI-RELEASE] release v0.6.0
djs0109 Nov 27, 2024
dea3ab3
docs: include pre-commit doc
sbanoeon Dec 3, 2024
a0fc2f8
build: move pre-commit dependency to extra_requires
sbanoeon Dec 3, 2024
a844b9f
Merge remote-tracking branch 'origin/master' into 341-Introduce-pre-c…
djs0109 Dec 5, 2024
5570022
chore: relex python specification for pre-commit
djs0109 Dec 10, 2024
54b5643
docs: update doc for pre-commit
djs0109 Dec 10, 2024
af394dc
docs: add hints for black formatter
djs0109 Dec 10, 2024
0a90d42
chore: apply black formatter for all files
djs0109 Dec 10, 2024
70042b4
Merge pull request #364 from RWTH-EBC/341-Introduce-pre-commit-hook-a…
djs0109 Dec 10, 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
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ omit =
*/test*
# omit deprecated code
*/deprecated*
# omit semantics module
filip/semantics/*
source =
filip
[report]
Expand Down
9 changes: 9 additions & 0 deletions .env.filip.EXAMPLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Global settings for filip
# If needed (for example for running examples) copy the content to another
# local file `.env.filip` in the root folder, i.e., ".../FiLiP/.env.filip"
# Do not add the created `.env.filip` to the git
CB_URL="http://localhost:1026"
LD_CB_URL="http://localhost:1027"
IOTA_URL="http://localhost:4041/"
QL_URL="http://localhost:8668"
MQTT_BROKER_URL="mqtt://localhost:1883"
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ __pycache__
!.github/issue-branch.yml

*.yaml
!.pre-commit-config.yaml

# pip install #
#####################
Expand All @@ -23,13 +24,14 @@ __pycache__
dist
*.pypirc
build
requirements.txt

# PyCharm #
#####################
.idea
.cache
venv

.venv
# Unittest #
#####################
.pytest_cache
Expand All @@ -43,3 +45,4 @@ venv
/examples/ngsi_v2/data_models/
/tests/semantics/models.py
/tests/semantics/models2.py
/.env.filip
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ include:
- project: 'EBC/EBC_all/gitlab_ci/templates'
file: 'python/doc/sphinxdoc.gitlab-ci.yml'
- project: 'EBC/EBC_all/gitlab_ci/templates'
file: 'pages/gl-pages.gitlab-ci.yml'
file: 'pages/gh-pages.gitlab-ci.yml'
rules:
- if: $CI_COMMIT_BRANCH == "master" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
- project: 'EBC/EBC_all/gitlab_ci/templates'
file: 'python/tests/tests.gitlab-ci.yml'
- project: 'EBC/EBC_all/gitlab_ci/templates'
Expand Down
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
# Using black mirror since it's 2x faster https://black.readthedocs.io/en/stable/integrations/source_version_control.html
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
# Specifying the latest version of Python supported by Filip
language_version: python
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
### v0.4.2
### v0.6.0
- add: Tutorial for connecting with secured endpoints ([#319](https://github.com/RWTH-EBC/FiLiP/pull/319))
- add: Example for notification based command ([#332](https://github.com/RWTH-EBC/FiLiP/pull/332))
- add: tests for clear functions ([#336](https://github.com/RWTH-EBC/FiLiP/pull/336))
- 🚀 **add: API client for NGSI-LD context broker** ([#338](https://github.com/RWTH-EBC/FiLiP/pull/338)
,[#356](https://github.com/RWTH-EBC/FiLiP/pull/356)
,[#327](https://github.com/RWTH-EBC/FiLiP/pull/327)
,[#300](https://github.com/RWTH-EBC/FiLiP/pull/300)
,[#301](https://github.com/RWTH-EBC/FiLiP/pull/301)
,[#212](https://github.com/RWTH-EBC/FiLiP/pull/212)
,[#222](https://github.com/RWTH-EBC/FiLiP/pull/222)
,[#221](https://github.com/RWTH-EBC/FiLiP/pull/221)
)
- fix: clear functions for context broker ([#336](https://github.com/RWTH-EBC/FiLiP/pull/336))
- fix: validation error of ``ngsipayloadattr`` when the attribute substitution is used([#351](https://github.com/RWTH-EBC/FiLiP/pull/351))
- update: integrate the key-values endpoints with normalized endpoints ([#318](https://github.com/RWTH-EBC/FiLiP/pull/318))
- remove: ``update_entity_attributes_key_values`` and ``update_entity_key_values`` are removed ([#318](https://github.com/RWTH-EBC/FiLiP/pull/318))


### v0.5.0
- update: allow duplicated name in device, check uniqueness of object_id ([#279](https://github.com/RWTH-EBC/FiLiP/pull/279))
- update: upgrade dependency of `paho-mqtt` to v2 ([#273](https://github.com/RWTH-EBC/FiLiP/pull/273/))
- add: `json` and `ngsi` as payload format in custom notification model ([#296](https://github.com/RWTH-EBC/FiLiP/pull/296))
- add: support alterationTypes in subscription model ([#293](https://github.com/RWTH-EBC/FiLiP/pull/293))
- add: validation for JEXL based expression ([#260](https://github.com/RWTH-EBC/FiLiP/pull/260))
- add: tutorials for multi-entity ([#260](https://github.com/RWTH-EBC/FiLiP/pull/260))
- add: add ``update_entity_relationships`` to allow relationship update ([#271](https://github.com/RWTH-EBC/FiLiP/pull/271))
- add: timeseries query with all attrs and specific attr name ([#16](https://github.com/RWTH-EBC/FiLiP/pull/16))
- add: flag to determine the deletion of registration when clearing the CB ([#267](https://github.com/RWTH-EBC/FiLiP/pull/267))
- add: ``covered`` flag in notification model ([#310](https://github.com/RWTH-EBC/FiLiP/pull/310))
- fix: rework tutorials for pydantic v2 ([#259](https://github.com/RWTH-EBC/FiLiP/pull/259))
- fix: inconsistency of `entity_type` as required argument ([#188](https://github.com/RWTH-EBC/FiLiP/pull/188))
- fix: allow empty string in attribute value validation ([#311](https://github.com/RWTH-EBC/FiLiP/pull/311))

BREAKING CHANGE: upgrade dependency of `paho-mqtt` to v2 ([#273](https://github.com/RWTH-EBC/FiLiP/pull/273/))

### v0.4.1
- fix: Session added as optional parameter to enable tls communication with clients ([#249](https://github.com/RWTH-EBC/FiLiP/pull/249))
Expand Down
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,29 @@ We use PEP8 as a coding style guide. Some IDEs (like PyCharm) automatically show

For committing style guide please use Conventional Commits 1.0.0. For more details how to structure your commits please visit this [page](https://www.conventionalcommits.org/en/v1.0.0/).

### Pre-commit Hooks

In order to make the development easy and uniform, use of pre-commit is highly recommended. The pre-commit hooks run before every commit to ensure the code is compliant with the project style.

Check if pre-commit is installed:
```bash
pre-commit --version
```
Install pre-commit via pip if it's not already installed.
```bash
pip install pre-commit~=4.0.1
```
Install the git hook scripts:
```bash
pre-commit install
```
This will run pre-commit automatically on every git commit. Checkout [pre-commit-config.yaml](.pre-commit-config.yaml) file to find out which hooks are currently configured.

> **Note:** Currently we are using the pre-commit to perform black formatter. You can perform a formatting to all files by running the following command:
> ```bash
> pre-commit run black --all-files
> ```

## Documentation

All created or modified functions should be documented properly.
Expand Down
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

# FiLiP

[![pylint](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/pylint/pylint.svg)](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/pylint/pylint.html)
[![Documentation](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/docs/doc.svg)](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/docs/index.html)
[![coverage](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/coverage/badge.svg)](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/coverage)
[![pylint](https://rwth-ebc.github.io/FiLiP/master/pylint/pylint.svg)](https://rwth-ebc.github.io/FiLiP/master/pylint/pylint.html)
[![Documentation](https://rwth-ebc.github.io/FiLiP/master/docs/doc.svg)](https://rwth-ebc.github.io/FiLiP/master/docs/index.html)
[![coverage](https://rwth-ebc.github.io/FiLiP/master/coverage/badge.svg)](https://rwth-ebc.github.io/FiLiP/master/coverage)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![build](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/build/build.svg)](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/build/build.svg)
[![build](https://rwth-ebc.github.io/FiLiP/master/build/build.svg)](https://rwth-ebc.github.io/FiLiP/master/build/build.svg)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.06953/status.svg )](https://doi.org/10.21105/joss.06953)

FiLiP (Fiware Library for Python) is a python software development kit (SDK) for
accelerating the development of web services that use Fiware's Generic
Expand Down Expand Up @@ -66,7 +67,7 @@ on this.
If this is not an option for you, FIWARE also provides a testing server.
You can register for a testing account
[here](https://www.fiware.org/developers/fiware-lab/).
> **Note**: FiLiP is now compatible to [Pydantic V2](https://docs.pydantic.dev/latest/migration/). If your program still require Pydantic V1.x for some reason, please use release [v0.2.5](https://github.com/RWTH-EBC/FiLiP/releases/tag/v0.2.5) or earlier version of FiLiP. Besides, we recommended to use `pydantic~=1.10` in the `requirements.txt`
> **Note**: FiLiP is now compatible to [Pydantic V2](https://docs.pydantic.dev/latest/migration/). If your program still require Pydantic V1.x for some reason, please use release [v0.2.5](https://github.com/RWTH-EBC/FiLiP/releases/tag/v0.2.5) or earlier version of FiLiP. Besides, we recommended to set `pydantic~=1.10` in the `requirements.txt`, otherwise Pydantic V2 might still be installed.

### Installation

Expand All @@ -83,6 +84,12 @@ If you want to benefit from the latest changes, use the following command
pip install -U git+git://github.com/RWTH-EBC/filip
```

> **Note**: For development, you should install FiLiP in editable mode with the following command:
> ````bash
> pip install -e .[development]
> ````
> The `development` option will install extra libraries required for contribution. Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

#### Install semantics module (optional)

If you want to use the optional [semantics module](filip/semantics), use the following command (This will install the libraries that only required for the semantics module):
Expand Down Expand Up @@ -141,7 +148,11 @@ Therefore, FiLiP currently only covers the APIs of the following GEs:
- [github](https://github.com/telefonicaid/fiware-orion)
- [swagger](https://swagger.lab.fiware.org/)
- [NGSI v2 specifications](https://github.com/FIWARE/specifications/tree/master/OpenAPI/ngsiv2)


- NGSI-LD Context Broker for managing context data with Linked Data concept. The functionalities that FiLiP supports are closely aligned with the specification **_NGSI-LD V1.3.1_**, which is according to the FIWARE [catalogue](https://github.com/FIWARE/catalogue#core-context-broker-components) the latest spec version that has been implemented by all three brokers (Orion-LD, Scorpio, and Stellio). We currently use Orion-LD for testing.
- [github](https://github.com/FIWARE/context.Orion-LD)
- [swagger](https://swagger.lab.fiware.org/?url=https://raw.githubusercontent.com/FIWARE/specifications/master/OpenAPI/ngsi-ld/full_api.json#/)
> **Note**: `-experimental` flag need to be set for Orion-LD Context Broker to enable the full functionality. Check this [issue](https://github.com/FIWARE/context.Orion-LD/issues/1648) for more information

- IoT-Agents for managing IoT Devices. IoT agents are implemented using
the FIWARE IoT Agent Node Lib as a common framework.
Expand Down Expand Up @@ -191,7 +202,7 @@ Therefore, FiLiP currently only covers the APIs of the following GEs:

We are still working on the documentation.
You can find our current documentation
[here](https://ebc.pages.rwth-aachen.de/EBC_all/github_ci/FiLiP/master/docs/index.html).
[here](https://rwth-ebc.github.io/FiLiP/master/docs/index.html).

## Running examples

Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sphinx>=4.2
autodoc-pydantic>=1.4.0
sphinx~=6.2.1
autodoc-pydantic~=2.2.0
sphinx-autobuild>=2021.3.14
m2r2>=0.3.1
sphinx-rtd-theme>=0.5.2
Loading