Skip to content

West Midlands | ITP-May - 25| Jonathan Boahene | Sprint-2 | Module-Structuring-and-Testing-Data #664

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

Abayie
Copy link

@Abayie Abayie commented Jul 17, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.
In this pull request I have added improved solutions and comprehensive tests for Sprint 2 of Module-Structuring-and-Testing-Data.
I refactored functions to handle edge cases and ensure correct formatting, such as converting 24-hour time strings to 12-hour clock format with am/pm.
The code now includes robust test cases for different input scenarios, including midnight, noon, single-digit hours, and times close to midnight and noon.
These changes enhance reliability and maintainability, making the code easier to understand and verify for a wide range of data inputs.

Questions

Ask any questions you have for your reviewer.

@Abayie Abayie added the Needs Review Participant to add when requesting review label Jul 17, 2025
@Abayie Abayie changed the title West Midlands | ITP-May | Jonathan Boahene | Sprint-2 | Module-Structuring-and-Testing-Data West Midlands | ITP-May - 25| Jonathan Boahene | Sprint-2 | Module-Structuring-and-Testing-Data Jul 17, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

  • Code is solid and explanation is clear. Great job!

  • This branch contains some unrelated modified files in the Sprint-1 folder. Can you revert the changes in the Sprint-1 folder?

image

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jul 17, 2025
@Abayie
Copy link
Author

Abayie commented Jul 18, 2025

Unfortunately this has happened to me again, I sometimes work on different branches at the same time and forget to switch branches.

Would you be able to assist me with any documentation on how to revert these changes from sprint 1 as I have no clue how to do this.

@Abayie Abayie added the Needs Review Participant to add when requesting review label Jul 18, 2025
Copy link
Author

@Abayie Abayie left a comment

Choose a reason for hiding this comment

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

Trying to delete unrelated files

@cjyuan
Copy link
Contributor

cjyuan commented Jul 18, 2025

The "Files changed" tab shows the difference between your branch (coursework/sprint-2) and the branch you want to merge your commits (CodeYourFuture's main):
image

As a result, when we delete files that were originally found in the main branch, the files will be reported as "changed files". In your case, the three files you deleted in "Sprint-1" folder are still appearing as changed files.
image

Normal way to revert changes is to use git rebase or git reset commands to manipulate the commits made on the branch.

An alternative approach to revert changes made to a file in this branch is to replace the file by the version of the file in main. To fix your branch, you can

  1. Download your main branch as a ZIP file from GitHub (https://github.com/Abayie/Module-Structuring-and-Testing-Data/tree/main),
  2. In VSCode or using Git, switch to coursework/sprint-2 branch.
  3. Replace the files you want to revert by the version of the files in the downloaded ZIP file.
  4. Verify the change.
  5. Make a commit and push the commit to GitHub.

@cjyuan cjyuan removed the Needs Review Participant to add when requesting review label Jul 18, 2025
@Abayie
Copy link
Author

Abayie commented Jul 18, 2025

The last option which seems pretty much the obvious choice for me to follow, wont replacing the files on the coursework/sprint-2 branch with the "main" files cause me to work on the same changes I made earlier on just the branch to vanish thereby having to redo the work twice?

@cjyuan
Copy link
Contributor

cjyuan commented Jul 18, 2025

You only need to revert the modified files that are NOT inside the "Sprint-2" folder, as they are not related to Sprint-2 exercise.

@Abayie
Copy link
Author

Abayie commented Jul 18, 2025

I don't quite understand the instruction then, but I am available for short call on video if you're available to help me figure this out, thank you.

@cjyuan
Copy link
Contributor

cjyuan commented Jul 18, 2025

Sure. Send a huddle to me on Slack? "CJ Yuan". You can just share your screen.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and review comments have been addressed and removed Reviewed Volunteer to add when completing a review labels Jul 18, 2025
@Abayie Abayie force-pushed the coursework/sprint-2 branch from 1397c74 to 4e090d9 Compare July 18, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants