Skip to content

Manchester| 26-ITP-Jan | fonime Edak | Sprint 2 | Data-groups#1110

Open
Ofonimeedak wants to merge 7 commits intoCodeYourFuture:mainfrom
Ofonimeedak:sprint-2-data-gruop
Open

Manchester| 26-ITP-Jan | fonime Edak | Sprint 2 | Data-groups#1110
Ofonimeedak wants to merge 7 commits intoCodeYourFuture:mainfrom
Ofonimeedak:sprint-2-data-gruop

Conversation

@Ofonimeedak
Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

This PR contains fixed bug codes with test cases for sprint 2
Please kindly find this as the link to my closed pull request for all commits
#1102

@Ofonimeedak Ofonimeedak added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Mar 26, 2026
@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 1, 2026
@Ofonimeedak Ofonimeedak requested a review from cjyuan April 3, 2026 14:17
@Ofonimeedak Ofonimeedak added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 3, 2026
Copy link
Copy Markdown
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.

4 of the inline comments in my previous review were hidden, and you probably missed them. Can you also address those comment?

Image

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 3, 2026
@Ofonimeedak Ofonimeedak requested a review from cjyuan April 3, 2026 18:04
@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Apr 3, 2026

What about the 4 unaddressed comments in the first review?

@Ofonimeedak
Copy link
Copy Markdown
Author

I searched I thought it was the one on look up.js that I have addressed

if (queryString.length === 0) {
return queryParams;
}
if (typeof queryString !== "string" || !queryString.includes("="))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

!queryString.includes("=")

This check would reject key1&key2&key3 but accept key1=&key2&key3.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you for this edge case. It got me thinking 2 things: whether I should consider such input as invalid, or I should return an empty object literal.
I had to consider the latter to keep the loop running

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should change your code to meet your expectation (instead of the other way around). Since the spec wasn't clear how the function is expected to handle empty key or value, you code is good.

@Ofonimeedak Ofonimeedak requested a review from cjyuan April 5, 2026 12:13
@Ofonimeedak Ofonimeedak added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 5, 2026
@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Apr 5, 2026
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 all review comments have been addressed. Module-Data-Groups The name of the module. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants