Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ladislas/feature/contentkit refactor activity exercise data models #456

Merged

Conversation

ladislas
Copy link
Member

  • 🚨 (ContentKit): Sonarcloud - Rename "activity" which has the same name as the field
  • 🚚 (ContentKit): Reorganize files between Activity and exercise
  • ♻️ (ContentKit): Move ExerciseSequence inside Exercise
  • ♻️ (ContentKit): Rename ExerciseType to Category + move to Exercise
  • 🗃️ (ContentKit): Rename type to category in yaml files
  • ♻️ (ContentKit): Move Action to Exercise
  • ♻️ (ContentKit): Move Gameplay to Exercise
  • ♻️ (ContentKit): Move Payload to Exercise
  • ♻️ (ContentKit): Action - Replace robot/iPadMedia by ActionType
  • ♻️ (ContentKit): Rename SelectionChoice to TouchSelectionChoice
  • ♻️ (ContentKit): Rename SelectionPayload to TouchSelectionPayload
  • 🚚 (ContentKit): Rename DragAndDropSelection to DragAndDropIntoZones
  • ♻️ (ContentKit): Rename DragAndDropChoice to DragAndDropIntoZonesChoice
  • ♻️ (ContentKit): Rename ChoiceDropZone to DropZone
  • ♻️ (ContentKit): Rename DragAndDropPayload to DragAndDropIntoZonesPayload
  • ♻️ (ContentKit): DragAndDropIntoZones - create enum, move all
  • ⚗️ (ContentKit): DragAndDropAssociation - Add basic enum to hold things
  • ♻️ (ContentKit): TouchSelection - create enum, move all

@ladislas ladislas self-assigned this Nov 13, 2023
@ladislas ladislas force-pushed the ladislas/feature/contentkit-refactor-activity-exercise-data-models branch from 28922af to 80c7aa3 Compare November 13, 2023 11:58
Copy link
Contributor

@HPezz HPezz left a comment

Choose a reason for hiding this comment

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

Good refactor, a way lighter than before ! Some naming remarks


// swiftlint:disable nesting

public enum DragAndDropIntoZones {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a huge fan of this naming. It feels weird next to TouchToSelect, TouchToAssociate, DragAndDropToAssociate that end with a verb. Can it be DragAndDropToAllocate or another verb to describe what we do ?

Copy link
Member Author

Choose a reason for hiding this comment

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

me neither, but I'm out of ideas for this name. It's not the same as the others, but at the same time I'm not sure we'll be able to always keep this this way. When we'll work on sequencing, or something else, names might differ.

I don't want to have just "drag and drop" as it seems it's on top of the others.

I'll keep this for the moment, we can revisit at a later time if needed when something pops up.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ladislas ladislas force-pushed the ladislas/feature/contentkit-refactor-activity-exercise-data-models branch from 80c7aa3 to 87a63a3 Compare November 14, 2023 16:45
@ladislas ladislas force-pushed the ladislas/feature/contentkit-refactor-activity-exercise-data-models branch from 87a63a3 to 3eda5df Compare November 14, 2023 16:49
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ladislas ladislas merged commit 9fcc2ec into main Nov 14, 2023
5 of 6 checks passed
@ladislas ladislas deleted the ladislas/feature/contentkit-refactor-activity-exercise-data-models branch November 14, 2023 16:49
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