Skip to content

Commit 280de9c

Browse files
authored
Remove compliance policies (#280)
Add dependabot.yml Deleted all compliance policies endpoints and tests. Removed some argument types in the runner as this uses a heterogeneous dict and it was too difficult to resolve this issue with the pyright checker. Removal of the compliance policies exposed some missing runner tests and these had to be rewritten to obtain 100% coverage. AB#10628 Signed-off-by: Paul Hewlett <[email protected]>
1 parent 0a8db34 commit 280de9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+214
-5360
lines changed

.github/dependabot.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# refer: https://github.com/dependabot/dependabot-core/blob/main/.github/dependabot.yml
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
# Check for updates managed by Composer once a week
9+
interval: "weekly"
10+
day: "wednesday"
11+
time: "03:00"
12+
timezone: "Europe/London"
13+
14+
# python
15+
- package-ecosystem: "pip"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
day: "wednesday"
20+
time: "03:00"
21+
timezone: "Europe/London"
22+
groups:
23+
common:
24+
patterns:
25+
- hashin
26+
- cython
27+
- flake8
28+
# Keep the package managers themselves separate because they are higher risk
29+
# and also higher visibility--ie, users generally want latest, so we don't
30+
# want breakage in the `common` group to prevent updating package manager versions
31+
pip:
32+
patterns:
33+
- pip
34+
pip-tools:
35+
patterns:
36+
- pip-tools
37+
pipenv:
38+
patterns:
39+
- pipfile
40+
- pipenv
41+
poetry:
42+
patterns:
43+
- poetry

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Example usage:
237237
-u https://app.datatrails.ai \
238238
--client-id <your-client-id> \
239239
--client-secret <your-client-secret> \
240-
functests/test_resources/richness_story.yaml
240+
functests/test_resources/subjects_story.yaml
241241
242242
243243
Example Yaml Snippet
@@ -251,7 +251,7 @@ the yaml representation of the request body for an asset or event.
251251
252252
The confirm: field is a control variable for the PythonSDK that ensures that the
253253
asset or event is confirmed before returning. This is optional and is only required
254-
3rd parties need to immediately retrieve and cryptographically
254+
if 3rd parties need to immediately retrieve and cryptographically
255255
verify your Assets, which can take a few seconds to propagate. It is typically
256256
not necessary to wait unless your workflow involves near-real-time
257257
communication with 3rd parties and the 3rd party needs instant cryptographic
@@ -269,9 +269,6 @@ verification of your new Asset.
269269
.. code:: yaml
270270
271271
---
272-
# Demonstration of applying a Richness compliance policy to an asset that undergoes
273-
# events that may or may not make the asset compliant or non-compliant.
274-
#
275272
# The operation field is a string that represents the method bound to an endpoint and
276273
# the args and kwargs correspond to the arguments to such a method.
277274
#

archivist/archivist.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
from .assetattachments import _AssetAttachmentsClient
4848
from .assets import _AssetsRestricted
4949
from .attachments import _AttachmentsClient
50-
from .compliance import _ComplianceClient
51-
from .compliance_policies import _CompliancePoliciesClient
5250
from .composite import _CompositeClient
5351
from .confirmer import MAX_TIME
5452
from .constants import (
@@ -96,8 +94,6 @@ class Archivist(ArchivistPublic): # pylint: disable=too-many-instance-attribute
9694
"appidp": _AppIDPClient,
9795
"applications": _ApplicationsClient,
9896
"attachments": _AttachmentsClient,
99-
"compliance": _ComplianceClient,
100-
"compliance_policies": _CompliancePoliciesClient,
10197
"composite": _CompositeClient,
10298
"events": _EventsRestricted,
10399
"locations": _LocationsClient,
@@ -144,8 +140,6 @@ def __init__(
144140
self.assets: _AssetsRestricted
145141
self.assetattachments: _AssetAttachmentsClient
146142
self.attachments: _AttachmentsClient
147-
self.compliance: _ComplianceClient
148-
self.compliance_policies: _CompliancePoliciesClient
149143
self.composite: _CompositeClient
150144
self.events: _EventsRestricted
151145
self.locations: _LocationsClient

archivist/compliance.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)