Skip to content

Assignment#1

Open
martemvroom wants to merge 9 commits intomainfrom
assignment
Open

Assignment#1
martemvroom wants to merge 9 commits intomainfrom
assignment

Conversation

@martemvroom
Copy link
Copy Markdown
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

None.

What did you learn from the changes you have made?

There were not really changes, but this assignment was helpful with practicing what I've learned so far at the DSI course.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Not really, I tried to approach it in a straightforward way.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

Yes, I had some issues in the beginning. I looked at the instructions more closely, look at my notes, and use ChatGPT. This helped me to understand some of the mistakes I made in the beginning. For instance, I forgot to use "git init ." in the beginning, and I had some issues with accessing the assignment.sh file. But I quickly understood the issues and how to solve it.

How were these changes tested?

I tested it by checking the folders mostly.

A reference to a related issue in your repository (if applicable)

No.

Checklist

  • [ X] I can confirm that my changes are working as intended

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Autograder results

question status comment
Part 1 - Q1 data directory does not exist
Part 1 - Q2 rawdata not moved to data/raw
Part 1 - Q3 ls command not run
Part 1 - Q4 Missing directories: data/processed/server_logs, data/processed/user_logs, data/processed/event_logs
Part 1 - Q5 No server log files in data/raw
Part 1 - Q6 No user log files in data/raw; No event log files in data/raw
Part 1 - Q7
Part 1 - Q8 data/inventory.txt does not exist
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Autograder results

question status comment
Part 1 - Q1
Part 1 - Q2
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2 coworker-changes branch not found in commit history

Please address the issues listed above.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Autograder results

question status
Part 1 - Q1
Part 1 - Q2
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2

Comment thread 02_activities/assignments/assignment.sh Outdated
# 7. For user privacy, remove all files containing IP addresses (files with "ipaddr" in the filename) from ./data/raw and ./data/processed/user_logs
rm data/raw/*ipaddr*
rm data/processed/user_logs/*ipaddr*
rf -rf ./data
Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub Mar 5, 2026

Choose a reason for hiding this comment

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

The rf -rf ./data line should have been deleted when you resolved conflicts when merging coworker-changes branch with your branch. The syntax is incorrect and its attempting to remove data dir.
Please delete this line and submit.

Comment thread 02_activities/assignments/assignment.sh Outdated
rm data/raw/*ipaddr*
rm data/processed/user_logs/*ipaddr*
rf -rf ./data
ea20676d33161a6f4d0fcd3c4f7aa5360f0f4309
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is hash code which showed up when you were resolving conflict. Please delete this line of code.

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

  1. Please make the requested changes (see inline comments) and submit.

  2. The PR contains 555 file changes instead of just 1 (assignment.sh). The newproject directory and its sub-directories (used for testing) have been added and committed to assignment branch. Please remove the unnecessary files. You can do so using -

git checkout assignment
git rm -r newproject
git commit -m "Remove newproject directory from PR"
git push origin assignment

Everything else looks good.

@anjali-deshpande-hub
Copy link
Copy Markdown

This is a friendly reminder to make the requested review changes in order to complete the assignment. Thank you.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Autograder results

question status
Part 1 - Q1
Part 1 - Q2
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2

@martemvroom
Copy link
Copy Markdown
Owner Author

I tried to remove the unnecessary files, but I got this:

Martes-MacBook-Air-6:assignments martevroom$ git rm -r newproject
fatal: pathspec 'newproject' did not match any files

@anjali-deshpande-hub
Copy link
Copy Markdown

Hi! I think its because assignment branch on your local machine is out of sync with one on Github. They should be the same. Try this -

git checkout assignment
git pull origin assignment

This will make them identical. You will also see the newproject dir on your machine. Then, run the git rm cmd.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Autograder results

question status
Part 1 - Q1
Part 1 - Q2
Part 1 - Q3
Part 1 - Q4
Part 1 - Q5
Part 1 - Q6
Part 1 - Q7
Part 1 - Q8
Part 2

@martemvroom
Copy link
Copy Markdown
Owner Author

Thank you! I figured out I had to two directories up. Now everything should be fixed.

Copy link
Copy Markdown

@anjali-deshpande-hub anjali-deshpande-hub left a comment

Choose a reason for hiding this comment

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

Perfect! Well done.

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.

3 participants