Skip to content

Fix all Mapperly warnings in Models/Mappers and add IDE setup documentation#28

Draft
vl336 with Copilot wants to merge 4 commits into
masterfrom
copilot/fix-mappers-method-warnings
Draft

Fix all Mapperly warnings in Models/Mappers and add IDE setup documentation#28
vl336 with Copilot wants to merge 4 commits into
masterfrom
copilot/fix-mappers-method-warnings

Conversation

Copilot AI commented Dec 13, 2025

Copy link
Copy Markdown

Resolved all Mapperly (RMG) warnings in the Meethub/Models/Mappers directory and added comprehensive IDE setup documentation to help developers resolve source generator issues in Rider.

Changes Made

Mapper Fixes

  • EventAttendanceMapper: Renamed parameter from isReadyToMatch to isReadyToMatching to match the target property name, enabling automatic mapping. Added ignore attributes for Id, User, Event, ProfileId, Profile.
  • EventMapper: Added ignore attributes for Id, Organizer, MapId (and OrganizerId in UpdateFromRequest)
  • FeedbackMapper: Added ignore attributes for Id, User
  • OrganizerMapper: Added ignore attribute for Id
  • PlaceMapper: Added ignore attributes for Id, Event (and EventId in UpdateFromRequest)
  • UserMapper: Added ignore attributes for Id and PhotoId
  • ProfileMapper: Added ignore attributes for Id, User (and UserId in UpdateFromRequest), and explicit ignores for ProfileDto ToDto mapping

Code Updates

  • EventAttendanceService: Updated method call to use renamed parameter isReadyToMatching

Documentation

  • README.md: Added "Development Setup" section with:
    • Explanation of Mapperly source generators
    • Step-by-step guide to resolve Rider IDE IntelliSense errors
    • Cache invalidation instructions (File → Invalidate Caches → Invalidate and Restart)
    • Build and test commands

Testing

  • ✅ Build succeeds with zero Mapperly (RMG) warnings
  • ✅ All 12 unit tests pass
  • ✅ Manual verification of mapper functionality

Note About Rider IDE Errors

The errors that may appear in Rider are IntelliSense warnings before source generators complete. The project builds successfully. Following the README instructions (build solution and invalidate caches if needed) will resolve these IDE analysis issues.

Original prompt

in Meethub/Models/Mappers i have a lot of mapper on Mapperly. the project can be built but in rider i see a lot of warnings and red line in mappers methods. fix these problems.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix warnings and errors in mappers methods Fix Mapperly warnings in Models/Mappers by adding ignore attributes Dec 13, 2025
Copilot AI requested a review from vl336 December 13, 2025 08:06

@vl336 vl336 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

image i get these errors

Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>

Copilot AI commented Dec 14, 2025

Copy link
Copy Markdown
Author
image i get these errors

The errors you're seeing in Rider are IntelliSense warnings before source generators complete. The project actually builds successfully (verified with tests passing).

I've added explicit ignore attributes for the ProfileDto mapping in commit 552a42e which should help Rider's analyzer.

To resolve the IDE errors:

  1. Build the solution in Rider (it will succeed and generate the Mapperly code)
  2. If errors persist: File → Invalidate Caches and restart Rider

The generated implementation code will then be recognized by IntelliSense and the red underlines will disappear.

Copilot AI requested a review from vl336 December 14, 2025 07:35

@vl336 vl336 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

image fix remaining warnings. add advice to invalidate cache to readme

…e to README

Co-authored-by: vl336 <44336551+vl336@users.noreply.github.com>

Copilot AI commented Dec 14, 2025

Copy link
Copy Markdown
Author
image fix remaining warnings. add advice to invalidate cache to readme

Fixed in commit d03d19f:

Remaining warnings resolved:

  • Renamed parameter from isReadyToMatch to isReadyToMatching in EventAttendanceMapper to match the property name
  • Updated the calling code in EventAttendanceService
  • Build now succeeds with zero RMG (Mapperly) warnings

README updated:

  • Added "Development Setup" section
  • Included step-by-step guide for resolving Rider IDE errors
  • Documented cache invalidation process: File → Invalidate Caches → Invalidate and Restart
  • Added build and test commands

The project now builds cleanly with full Mapperly source generation support.

Copilot AI changed the title Fix Mapperly warnings in Models/Mappers by adding ignore attributes Fix all Mapperly warnings in Models/Mappers and add IDE setup documentation Dec 14, 2025
Copilot AI requested a review from vl336 December 14, 2025 07:56
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