Skip to content

Commit

Permalink
Update issue index and Nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Oct 1, 2024
1 parent bd82844 commit aadea2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion backend/apps/github/models/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def __str__(self):
def is_indexable(self):
"""Issues to index."""
return (
self.state == self.State.OPEN and not self.is_locked and self.repository.is_indexable
self.state == self.State.OPEN
and not self.is_locked
and not self.assignees.exists()
and self.repository.is_indexable
)

@property
Expand Down
3 changes: 3 additions & 0 deletions backend/apps/github/models/managers/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def get_queryset(self):
.select_related(
"repository",
)
.prefetch_related(
"assignees",
)
.filter(
repository__project__isnull=False,
state="open",
Expand Down
2 changes: 1 addition & 1 deletion nginx/staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ server {
}

server {
listen 443 ssl;
listen 443 ssl default_server;
server_name _;

ssl_certificate /etc/letsencrypt/live/nest.owasp.dev/fullchain.pem;
Expand Down

0 comments on commit aadea2d

Please sign in to comment.