Skip to content

feat: add TitleAr/TitleEn/DescriptionAr/DescriptionEn fields to interactive maps#103

Merged
ahmed12348 merged 2 commits into
develop-backendfrom
Modification
Jul 1, 2026
Merged

feat: add TitleAr/TitleEn/DescriptionAr/DescriptionEn fields to interactive maps#103
ahmed12348 merged 2 commits into
develop-backendfrom
Modification

Conversation

@ahmed12348

Copy link
Copy Markdown
Collaborator

…active map nodes

  • Added 4 new fields (TitleAr, TitleEn, DescriptionAr, DescriptionEn) to InteractiveMapNode entity, DTOs, commands, validators, EF config, and migration
  • Removed Topic and Posts from public node details endpoint (only News, Events, Resources remain)
  • Removed WhenWritingNull from EnvelopeWriter so nullable fields appear as null in JSON
  • Excluded new fields from public interactive-maps list endpoint (replica schema mismatch workaround)
  • Updated Seeders with the new fields

Summary

Test plan

  • dotnet test backend/CCE.sln green
  • pnpm nx run-many -t lint,test green
  • If API surface changed: ./scripts/check-contracts-clean.sh green
  • If UI changed: pnpm nx run-many -t e2e (web-portal-e2e + admin-cms-e2e) green
  • Manual smoke notes (if any):

Security checklist

  • No new secrets / credentials in code
  • AuthN / AuthZ impact considered
  • Input validation on new endpoints
  • Audit-log entry for new state-changing operations

BRD traceability

Screenshots / output (optional)

ahmed12348 and others added 2 commits July 1, 2026 10:39
…active map nodes

- Added 4 new fields (TitleAr, TitleEn, DescriptionAr, DescriptionEn) to InteractiveMapNode entity, DTOs, commands, validators, EF config, and migration
- Removed Topic and Posts from public node details endpoint (only News, Events, Resources remain)
- Removed WhenWritingNull from EnvelopeWriter so nullable fields appear as null in JSON
- Excluded new fields from public interactive-maps list endpoint (replica schema mismatch workaround)
- Updated Seeders with the new fields
…tion per CRUD guide

- Removed .Include(n => n.Tags) + in-memory MapToDto
- Uses ToPagedResultAsync with projection expression (single SQL round-trip)
- Matches crud-implementation-guide.md conventions for read operations
@ahmed12348 ahmed12348 merged commit b47c9a9 into develop-backend Jul 1, 2026
internal static readonly JsonSerializerOptions JsonOptions = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

دا علشان ب ignore اي فيلد null

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need if name=""
need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants