Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5345e34
baseapp-files: initial package, ported to plugin architecture
nossila Sep 20, 2023
637521c
files admin: use baseapp_core.admin_helpers.ModelAdmin
nossila Jun 27, 2026
3401dad
Merge origin/master into feature/baseapp_files
nossila Jul 11, 2026
0b8e044
files: port the reactions performance pattern (annotate_queryset + sh…
nossila Jul 11, 2026
e09e8c6
files: enforce attach permission and files-enabled check in FileAttac…
nossila Jul 11, 2026
cd36439
files docs: multipart-only scope, fix parent_id examples, real storag…
nossila Jul 11, 2026
7a74436
files: query-count tests locking in the annotate_queryset optimisation
nossila Jul 11, 2026
3c33b0f
content_feed: expose CommentsInterface on ContentPost
nossila Jul 11, 2026
0c46112
files: backfill test coverage; fix myFiles scoping and attach not_fou…
nossila Jul 11, 2026
2d037cf
files: address code-review findings (authz, ordering, dedup, dead sub…
nossila Jul 11, 2026
140cc44
files: address SonarCloud new-code findings
nossila Jul 11, 2026
5c39f5b
files: drop null=True on AbstractFile string fields (Sonar S6553)
nossila Jul 12, 2026
65af75b
core graphql: remove commented-out debug code in parse_body (Sonar S125)
nossila Jul 12, 2026
1e6728b
files: address PR review — REST target authz, error hygiene, validation
nossila Jul 12, 2026
290fbaf
files: second review round (CodeRabbit/CodeQL) — hardening + fixes
nossila Jul 12, 2026
4fa9579
files: wrap REST ValidationError messages in arrays + annotate authz …
nossila Jul 12, 2026
bd7ec37
files: move storage I/O out of transactions, i18n-ready fields + mess…
nossila Jul 12, 2026
c5b4055
files: isort the generated 0003 migration (CI isort --check runs repo…
nossila Jul 12, 2026
5895207
files: add 'from None' to serializer parent_id re-raises (Ruff B904)
nossila Jul 12, 2026
3e239eb
files: register count triggers via pgtrigger_register_default_track
nossila Aug 7, 2026
8433993
files: isolate presigned upload token logic in PresignedUploadToken
nossila Aug 7, 2026
f392bd8
Merge remote-tracking branch 'origin/master' into feature/baseapp_files
nossila Sep 11, 2026
dcab83e
Merge remote-tracking branch 'origin/master' into feature/baseapp_files
nossila Oct 1, 2026
619ddf2
Merge silverlogic/baseapp-backend#442: baseapp.files package
nossila Oct 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions baseapp/activity_log/tests/test_graphql_mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,8 @@ def test_add_comment_is_public(django_user_client, graphql_user_client, celery_c
id
name
biography
image(width: 100, height: 100) {
url
}
bannerImage(width: 100, height: 100) {
url
}
image(width: 100, height: 100)
bannerImage(width: 100, height: 100)
}
errors {
field
Expand Down
5 changes: 4 additions & 1 deletion baseapp/content_feed/graphql/object_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ContentPostObjectType(DjangoObjectType):

class Meta:
interfaces = graphql_shared_interfaces.get(
RelayNode, "MentionsInterface", "ReactionsInterface"
RelayNode, "MentionsInterface", "ReactionsInterface", "CommentsInterface"
)
model = ContentPost
fields = (
Expand All @@ -66,4 +66,7 @@ def get_queryset(cls, queryset, info) -> "QuerySet":
# (`reactions_count`, `is_reactions_enabled`) don't N+1 per post.
if service := shared_services.get("reactable_metadata"):
queryset = service.annotate_queryset(queryset)
# Same for CommentsInterface (`comments_count`, `is_comments_enabled`).
if service := shared_services.get("commentable_metadata"):
queryset = service.annotate_queryset(queryset)
return queryset
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
node {
id
pk
image(width:600, height:0){
url
}
image(width:600, height:0)
}
}
}
Expand Down
Loading
Loading