Skip to content

Conversation

@Bluejay600
Copy link

@Bluejay600 Bluejay600 commented Jul 21, 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

this PR gives a short set of requirements about a function. and You will need to implement, interpret and and sometimes fix a function based off this set of requirements

Questions

Ask any questions you have for your reviewer.

@Bluejay600 Bluejay600 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 5, 2025
@Bluejay600 Bluejay600 requested a review from cjyuan August 7, 2025 00:13
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.

  • The file Sprint-2/implement/querystring.js was not updated.

  • These two files are still not properly reverted:

    • Sprint-3/quote-generator/index.html
    • Sprint-2/interpret/test.js

Note: You can view which files have been modified when compared to CYF's main on
https://github.com/CodeYourFuture/Module-Data-Groups/pull/672/files


All other changes look good.

@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 Aug 7, 2025
@Bluejay600 Bluejay600 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 12, 2025
queryParams[key] = value;
for (const pair of pairs) {
const [rawKey, rawValue] = pair.split("=");
const key = rawKey !== undefined ? decodeURIComponent(rawKey) : "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Could rawKey ever be undefined?

const result = {};
for (const [country, currency] of pairs) {
result[country] = currency;
if (!Array.isArray(pairs)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation is a bit off.

@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 Aug 12, 2025
@Bluejay600 Bluejay600 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 17, 2025
@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

1 similar comment
@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

@Bluejay600 Bluejay600 changed the title Sheffield | May-2025 | Waleed-Yahya Salih-Taha | DataGroup-sprint 2 Sheffield | May-2025 | Waleed- Salih-Taha | Sprint 2 | Data Group Aug 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.

Changes look ok.

const key = pair.slice(0, idx);
const value = pair.slice(idx + 1);

if (key === "equation" || key === "formula" || key === "expression" || value.includes('=')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't you apply decodeURIComponent() to a value when it includes a "=" or when the key is one of those three values?

queryParams[key] = value;
} else {
try {
queryParams[key] = decodeURIComponent(value.replace(/\+/g, ' '));
Copy link
Contributor

Choose a reason for hiding this comment

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

key can also be URI-encoded in practice.

@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. labels Aug 17, 2025
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. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants