Skip to content

Commit 8834e3b

Browse files
feat: Add pilot logging
[bac6057] fix: Few small fixes [490e293] feat: Logging is working, and we can search through the data [09ddffa] fix: Lots of fixes to make it work [b4e3d12] [pre-commit.ci] auto fixes from pre-commit.com hooks [f121d21] fix: remove unused code [6f1cb7f] feat: move bulk_insert to logging.py [ea6ecdd] feat: refactor pilot logging to include a business logic layer, rebase and fix _get_columns [15338d5] feat: refactor pilot logging to include a business logic layer [8fe6d31] fix: rename _get_columns to get_columns [9ee07db] fix: remove unused PilotNotFoundError exception [cf61acb] feat: Restructured pilot logger + test send_message and get_logs [9800d11] feat: enable remote pilot logging system [720f302] fix: Add security by preventing a user to access a pilot endpoint and vice-versa [bad03be] fix: Changed the pilot token from a User to a dedicated [f71da78] fix: Split in two pilot route [3feaa56] fix: Add security by preventing to see other pilots [306941f] fix: Fix, bug not caught by CI (sqlite not raising anything) [cc8de96] fix: Change secrets from VARCHAR to BINARY [17ce4e3] feat: Change from SecretID to SecretUUID [5760830] fix: Generating the client [43cfccc] feat: Migrating pilot functionalities from DIRAC, and add DiracX pilot auth [33cfe17] test: Changing from sleep to freezegun #537 [3e5d677] refactor: Refactorized the exceptions [d84f6fe] doc: Documenting the database [1c0db02] test: Better testing: Tested search engine [cd1caf4] refactor: Refactoring from the auth router to the pilot router [9cc99f1] feat: Adding indexes to the database [de0b580] refactor: Moved the pilot_to_secret_mapping into the pilotagents table itself [14396f6] refactoring: Lots of refactoring of the code [56daac5] refactor: Moving db parts to the logic, and some fixes [79a11cf] fix: Fixed dependency and client [8c45582] test: Tested interval deletion for the db. [dd07bca] feat: We can clear pilots that lived more than n days [7e93153] feat: We can search for pilots [9da8033] feat: DIRAC can associate a pilot with a job [77a59b0] feat: We can modify pilot fields (statuses, benchmarks, ...) [ca0e727] fix: Added pilot management [521164f] fix: Fixed text [8e6e881] [pre-commit.ci] auto fixes from pre-commit.com hooks [adadb68] fix: Semantic [15d9fe6] feat: We can add a number of use max for the secret in pilot registration [4549203] fix: Fixed cli [a9ece0a] feat: Adding a command to add a pilot to the CS, and some fixes [42e4f0b] fix: Changed secret expiration from 600 to 3600s [1dcb4b8] fix: Regenerated client [02a5e31] feat: A user can create secrets, and associate them to a pilot [8072227] feat: Ability to add only secrets, and lots of refactoring in the tests [10205d6] feat: Autodeletion of secrets after full use or expiration. [3f013df] feat: Restricting a secret for a certain VO [c2181aa] fix: Chunky client [d374ec6] feat: Changing the pilot login db, and moved from references to stamps [aa67bda] fix: Regenerating client [135235f] feat: Using pilot user, model for pilot creds, and documentation [0e0a117] feat: Added last_time_used for a pilot secret, and a max value [62977ee] fix: Few fixes with refactoring, and tests (+4 squashed commits) Squashed commits: [5169ee2] refactor: Moved login for pilots into token file [12da5c0] fix: Fixed according the the new commits from main branch [a8e06d8] fix: Fixed client [93b83b4] fix: Fixed the tests and autorest [a78c028] feat: A user can register pilots and get their credentials [1e9f907] fix: Removing the pilot login cli [3f7c632] feat: Adding duration to secrets [8aff5d9] fix: Regenerating client, type ignore for the cli Squashed commits: [06a969b] fix: Type ignore for mypy... [28e1ee1] fix: Generated code broke everything [339ab4f] fix: Fixed cli and pilot endpoints [31af99e] fix: Regenerated client [a171d01] feat: Added pilot login to the cli [54951a6] fix: Correcting client generation with the error patch Squashed commits: [65db1ae] fix: Regenerating clients with autorest [5a4f370] feat: Better handling of refresh tokens for pilots [6da7bb4] fix: Generating client with autorest [2c4d2fb] feat: Adding pilot registrations [a957480] feat: Adding pilot registrations, with secret management
1 parent f17e4db commit 8834e3b

File tree

40 files changed

+5872
-96
lines changed

40 files changed

+5872
-96
lines changed

diracx-client/src/diracx/client/_generated/_client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,33 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
7272
self._serialize = Serializer(client_models)
7373
self._deserialize = Deserializer(client_models)
7474
self._serialize.client_side_validation = False
75+
<<<<<<< HEAD
7576
self.well_known = WellKnownOperations(self._client, self._config, self._serialize, self._deserialize)
7677
self.auth = AuthOperations(self._client, self._config, self._serialize, self._deserialize)
7778
self.config = ConfigOperations(self._client, self._config, self._serialize, self._deserialize)
7879
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
7980
self.pilot = PilotOperations(self._client, self._config, self._serialize, self._deserialize)
8081
self.pilots = PilotsOperations(self._client, self._config, self._serialize, self._deserialize)
82+
=======
83+
self.well_known = WellKnownOperations(
84+
self._client, self._config, self._serialize, self._deserialize
85+
)
86+
self.auth = AuthOperations(
87+
self._client, self._config, self._serialize, self._deserialize
88+
)
89+
self.config = ConfigOperations(
90+
self._client, self._config, self._serialize, self._deserialize
91+
)
92+
self.jobs = JobsOperations(
93+
self._client, self._config, self._serialize, self._deserialize
94+
)
95+
self.pilot = PilotOperations(
96+
self._client, self._config, self._serialize, self._deserialize
97+
)
98+
self.pilots = PilotsOperations(
99+
self._client, self._config, self._serialize, self._deserialize
100+
)
101+
>>>>>>> e3b1128b (feat: Add pilot logging)
81102

82103
def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
83104
"""Runs the network request through the client's chained policies.

diracx-client/src/diracx/client/_generated/aio/_client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,33 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
7272
self._serialize = Serializer(client_models)
7373
self._deserialize = Deserializer(client_models)
7474
self._serialize.client_side_validation = False
75+
<<<<<<< HEAD
7576
self.well_known = WellKnownOperations(self._client, self._config, self._serialize, self._deserialize)
7677
self.auth = AuthOperations(self._client, self._config, self._serialize, self._deserialize)
7778
self.config = ConfigOperations(self._client, self._config, self._serialize, self._deserialize)
7879
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
7980
self.pilot = PilotOperations(self._client, self._config, self._serialize, self._deserialize)
8081
self.pilots = PilotsOperations(self._client, self._config, self._serialize, self._deserialize)
82+
=======
83+
self.well_known = WellKnownOperations(
84+
self._client, self._config, self._serialize, self._deserialize
85+
)
86+
self.auth = AuthOperations(
87+
self._client, self._config, self._serialize, self._deserialize
88+
)
89+
self.config = ConfigOperations(
90+
self._client, self._config, self._serialize, self._deserialize
91+
)
92+
self.jobs = JobsOperations(
93+
self._client, self._config, self._serialize, self._deserialize
94+
)
95+
self.pilot = PilotOperations(
96+
self._client, self._config, self._serialize, self._deserialize
97+
)
98+
self.pilots = PilotsOperations(
99+
self._client, self._config, self._serialize, self._deserialize
100+
)
101+
>>>>>>> e3b1128b (feat: Add pilot logging)
81102

82103
def send_request(
83104
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any

0 commit comments

Comments
 (0)