-
Notifications
You must be signed in to change notification settings - Fork 155
feat: Vulnerability acquisition page summary added language #1223
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
Conversation
| flat=True)) | ||
| must_query = [ | ||
| Q('terms', user_id=user_id_list), | ||
| Q('terms', user_id=department), |
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.
here
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.
department_id=department
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.
department IastDepartment
expect int here
dongtai_common/models/user.py
Outdated
| return Department.objects.filter(principal_id=self.id).exists() | ||
|
|
||
| def get_relative_department(self): | ||
| def get_relative_department(self) -> IastDepartment: |
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.
Department
|
|
||
| def get_annotate_data( | ||
| user_id: int, bind_project_id=int, project_version_id=int | ||
| department: int, bind_project_id=int, project_version_id=int |
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.
: int?
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.
project__department__in=department Department
dongtai_web/views/agents_v2.py
Outdated
|
|
||
|
|
||
| def get_agent_stat(agent_id: int, user_id: int) -> dict: | ||
| def get_agent_stat(agent_id: int, department: int) -> dict: |
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.
Department
dongtai_web/views/agents_v2.py
Outdated
| agent__id=agent_id, | ||
| from_where=FromWhereChoices.FROM_AGENT, | ||
| agent__user__in=get_auth_users__by_id(user_id)).count() | ||
| agent__department__in=department).count() |
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.
agent__department__in
project
| if not project: | ||
| project = IastProject.objects.create(name=name, | ||
| user=request.user) | ||
| department_id = request.data.get("department_id") |
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.
Too Nested
test/iast/views/test_vul_summary.py
Outdated
| agent=agent, | ||
| context_path='', | ||
| counts=1, | ||
| language='NGUAGE', |
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.
?
feat: Update some APIs to department permissions