Skip to content

Conversation

@ike-agu
Copy link

@ike-agu ike-agu commented Feb 9, 2026

Learners, PR Template

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

Changelist

  • Complete middleware exercise

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@ike-agu ike-agu closed this Feb 9, 2026
@ike-agu ike-agu reopened this Feb 9, 2026
@github-actions

This comment has been minimized.

@ike-agu
Copy link
Author

ike-agu commented Feb 9, 2026

Please could you help edit my PR title with the right meta data. It doesn’t allow me. I missed one pipe (|) between sprint 3 and middleware.

@ike-agu ike-agu changed the title London | SDC-Nov-25 | Ikenna Agulobi | Sprint3 Middleware exrecise London | SDC-Nov-25 | Ikenna Agulobi | Sprint3 | Middleware Feb 9, 2026
@ike-agu ike-agu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@ike-agu ike-agu changed the title London | SDC-Nov-25 | Ikenna Agulobi | Sprint3 | Middleware London | SDC-Nov-25 | Ikenna Agulobi | Sprint 3 | Middleware Feb 9, 2026
@ike-agu ike-agu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@OracPrime OracPrime added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Feb 10, 2026
Copy link

@OracPrime OracPrime left a comment

Choose a reason for hiding this comment

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

A comment to understand, nothing to change. Excellent submission

```
You are authenticated as Ahmed.
You have requested information about 1 subject: Bees.
``

Choose a reason for hiding this comment

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

Nice! Many trainees haven't bothered with this file, but adding a readme like this is an excellent habit to get into.

req.on("data", (chunk) => {
raw += chunk.toString("utf8");
});

Choose a reason for hiding this comment

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

This is a really strong submission, and I'm only raising this tiny technical point because there was nothing else wrong with the code. utf8 characters and be up to 4 bytes long. They're normally 1, but they can be 4. If that 4 byte sequence was split across two chunks, the toString would be incorrect. More robust would be something like

let chunks = [];

req.on("data", (chunk) => {
  chunks.push(chunk);
});

req.on("end", () => {
  const raw = Buffer.concat(chunks).toString("utf8");
  // ... rest of the logic
});

But that's really quite subtle - don't worry about changing it.

@OracPrime OracPrime added Reviewed Volunteer to add when completing a review with trainee action still to take. 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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 10, 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. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants