-
Notifications
You must be signed in to change notification settings - Fork 14
[wip] feat: add support for IXP extract and validate operations #516
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
base: main
Are you sure you want to change the base?
Conversation
alexandrujircan
commented
Aug 27, 2025
- depends on fix: infer content type #515
def _get_project_tags(self, project_id: str) -> List[str]: | ||
response = self.request( | ||
"GET", | ||
url=Endpoint(f"/du_/api/framework/projects/{project_id}/tags"), | ||
params={"api-version": 1.1}, | ||
headers={"X-UiPath-Internal-Agents-Integration": "true"}, | ||
) | ||
return [tag["name"] for tag in response.json().get("tags", [])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def _get_project_tags(self, project_id: str) -> List[str]: | |
response = self.request( | |
"GET", | |
url=Endpoint(f"/du_/api/framework/projects/{project_id}/tags"), | |
params={"api-version": 1.1}, | |
headers={"X-UiPath-Internal-Agents-Integration": "true"}, | |
) | |
return [tag["name"] for tag in response.json().get("tags", [])] | |
def _get_project_tags(self, project_id: str) -> Set[str]: | |
response = self.request( | |
"GET", | |
url=Endpoint(f"/du_/api/framework/projects/{project_id}/tags"), | |
params={"api-version": 1.1}, | |
headers={"X-UiPath-Internal-Agents-Integration": "true"}, | |
) | |
return {tag["name"] for tag in response.json().get("tags", [])} |
nit: make this a set since we shouldn't have duplicates
return self.request( | ||
"POST", | ||
url=Endpoint( | ||
f"/du_/api/framework/projects/{project_id}/{tag}/document-types/{UUID(int=0)}/extraction/start" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When do we use UUID(int=0)
vs a real document type id?
headers={"X-UiPath-Internal-Agents-Integration": "true"}, | ||
).json() | ||
|
||
def _wait_for_validation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename this to _wait_for_validation_creation
(or maybe _wait_for_validation_start
) and create another method _wait_for_validation_completion
that contains the code which is now in get_validation_result
. I feel like this naming would make it clearer.