Commit 19c0a4d
Cognition integration provider (#167)
* build: third party integration first commit
* chore: update enums
* perf: add integration acess
* perf: rename to integration
* perf: add last_extraction column to integration
* perf: update integration delta
* perf: update integration access to list types
* perf: add integration_types to integration access
* perf: add integration_types to integration access
* perf: rename last_extraction to extract_history
* fix: store enum.value instead of enum
* fix: integration.project_id nullable
* fix: nulable column instead of foreignkey
* fix: enum values
* perf: task cancellation
* fix: keyword arguments
* perf: integration record
* perf: add tokenizer
* perf: add update integration access
* perf: update integration endpoints
* perf: add get endpoint
* Oidc field in the users table
* perf: add org_id to integration provider
* perf: add org_id support to integration
* perf: add record delta criteria
* fix: task execution finish on failed integration
* perf: add integration finished_at
* perf: add started_at
* fix: started_at - finished_at syntax error
* perf: add integration records
* perf: add integration tables
* perf: update integrations delta
* perf: add sharepoint integration
* perf: update integration objects
* perf: expand IntegrationSharepoint
* fix: integration.started_at
perf: add unique constraints to integrations
* perf: integration data types
* perf: unique constraint names
* Reset finished at for new integrations
* perf: update integration objects
* perf: add integration delta deletion
* basic models
* perf: last_synced_at integration column
* perf: add is_synced column
* chore: add typing
* perf: add sync columns
* fix model
* perf: add get_all integrations
* chore: add todo comment
* permission test
* projects with access management
* perf: add sharepoint db bo
* deactivate mock up
* get by user id
* enable list payload
* perf: integration update
* perf: tech discussion feedback
* perf: get integrations updates
* perf: integration updates
* perf: introduce managers
* chore: typing
* perf: access + check for updates
* perf: update integration
* perf: add delta url to sharepoint integration
* fix: move delta_url to cognitionintegration
* perf: integration updates
* perf: add updated_by + delta_criteria
* perf: add delta_criteria field
* perf: check for status improvement
* add meta_data group
* format
* model
* sync action
* rename action
* perf: dynamic 'by' record grouping
* style: arguments newlines in function definitions
* new getters
* delete groups
* fix: rm get project by name and org id
* perf: pr review comments
* perf: pr review comments
* fix: paginated query
* perf: update integrations model
* perf: update to_snake_case regex compilation
* access management
* perf: db model update
* perf: pr comments
* perf: remove unnecessary checks
* fix: nullable error message
* perf: pr comments
* delete
* perf: move IntegrationMetadata enum to integration_objects.helper
* Oidc field in the users table (#170)
Co-authored-by: andhreljaKern <andrea.hrelja@kern.ai>
* fix: metadata helper function
* perf: update integration task type name
* style: formatting
* perf: pr review comments
* perf: add REFINERY_ATTRIBUTE_ACCESS constants
* fix: query builder for record_ids
* perf: monitor.set_integration_task_to_failed with state
* perf: add early exit for deleted integrations
* perf: add early exit for task execution
* sharepoint active queue
* unique by name and integration
* typing
* improve sql
* merge
* model
* fix group
* remove unique
* perf: add file_properties integration column
* perf: update default state for set_integration_task_to_failed
* Adds option filter for pid
* PR comments
---------
Co-authored-by: Lina <lina.lumburovska@kern.ai>
Co-authored-by: LennartSchmidtKern <lennart.schmidt@kern.ai>
Co-authored-by: lumburovskalina <104008550+lumburovskalina@users.noreply.github.com>
Co-authored-by: JWittmeyer <jens.wittmeyer@kern.ai>1 parent 4cdfbd2 commit 19c0a4d
File tree
14 files changed
+1327
-13
lines changed- business_objects
- cognition_objects
- integration_objects
14 files changed
+1327
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
| 327 | + | |
| 328 | + | |
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| |||
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
394 | | - | |
| 397 | + | |
| 398 | + | |
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
200 | 223 | | |
201 | 224 | | |
202 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
126 | | - | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
158 | 212 | | |
159 | 213 | | |
160 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
609 | 613 | | |
610 | 614 | | |
611 | 615 | | |
612 | | - | |
| 616 | + | |
613 | 617 | | |
614 | 618 | | |
615 | 619 | | |
| |||
807 | 811 | | |
808 | 812 | | |
809 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
810 | 837 | | |
811 | 838 | | |
812 | 839 | | |
| |||
925 | 952 | | |
926 | 953 | | |
927 | 954 | | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments