Commit graph

17 commits

Author SHA1 Message Date
8f91cbed02
A Circle must pre-exist before beeing used by an authorization 2026-08-21 16:40:24 +01:00
06672c4c90
remove dead 'Comment' field from CircleAuthorizationToBlogPost
The bool Comment on CircleAuthorizationToBlogPost was dead code:
never read or written by any caller in src/, no UI exposure, no
behavioural semantics. The wire DTO (CircleAuthorization in
Yavsc.Abstract) doesn't carry it, no reader consumes it, and the
PostIt client builds its payload without it.

What changes:
- src/Yavsc.Server/Models/Access/CircleAuthorizationToBlogPost.cs:
  remove the property.
- src/Yavsc.Blogs.Tests/BlogAclApiTests.cs: drop 'Comment = true'
  from the existing test payload and trim the now-inaccurate XML
  doc comment ('CircleId + BlogPostId + Comment' -> 'CircleId +
  BlogPostId'). Also adds a new [Fact] pinning the prod bug
  reported on 2026-08-21 (HTTP 500 'BlogPostId is unknown' when
  PostIt POSTs the bare { circleId } shape). That test stays red:
  the real fix for the 500 is in PostIt (payload needs blogPostId)
  + on the wire DTO + server-side validation, and lives in a
  follow-up commit.

Migration:
- src/Yavsc.Org/Migrations/20260820232152_DropCommentFromCircleAuthorizationToBlogPost
  drops the boolean 'Comment' column on CircleAuthorizationToBlogPost.
  The generated scaffold also wanted to drop three 'ClientId1'
  shadow FK columns on ClientScopes / ClientRedirectUris /
  ClientGrantTypes (from leftover HasOne<Client>() overrides in
  ApplicationDbContext.OnModelCreating); those were removed from
  the .cs to keep the migration scoped to this fix. Cleaning up the
  shadow property declarations themselves is left as a separate
  task.

The ModelSnapshot still reflects the shadow 'ClientId1' columns
intentionally: they exist in the prod database today (all NULL),
and EF will rescaffold a drop migration for them on the next
'migrations add' regardless. No data loss.
2026-08-21 00:27:27 +01:00
Paul Schneider
40e8e08690 reorg 2026-02-28 21:17:54 +00:00
Paul Schneider
45514010f2 REORG 2026-02-14 16:54:27 +00:00
Paul Schneider
31d4f74e6d WIP allow blog comment 2025-07-05 13:21:50 +01:00
Paul Schneider
8e8f4d3896 refactoring 2025-02-14 22:44:33 +00:00
Paul Schneider
fdf5ee915e Fogo 2024-12-14 20:21:41 +00:00
Paul Schneider
6106cd4c7e no-more-circle-autorisation-to-file 2021-06-03 18:21:31 +01:00
345c787e06 ... 2020-12-30 03:10:02 +00:00
1517b48741 Fixing destination file @streaming 2020-10-18 23:00:17 +01:00
fa8e032d21 [REORG] 2019-10-08 23:41:19 +01:00
6298aab179 ui for fs acl by circle 2019-08-05 06:18:38 +02:00
590e488024 group files by circle 2019-08-03 23:20:37 +02:00
6ad9b82174 Chat rooms 2019-05-10 09:58:09 +01:00
f0a5dff06f ban reason 2019-01-27 12:32:00 +00:00
92fc6c6c95 ban some user 2019-01-25 17:33:20 +00:00
ccc91bbf19 files tree made better. 2019-01-01 16:29:36 +00:00