UBC-Thunderbots / Software

Robot Soccer Playing AI
http://www.ubcthunderbots.ca
GNU Lesser General Public License v3.0
53 stars 110 forks source link

Removed unused ROBOT-STATUS log filter #3324

Closed potatoisagender closed 5 days ago

potatoisagender commented 5 days ago

Description

Removed unused ROBOT_STATUS log filter in logger.h and custom_logging_levels.h #2785

Testing Done

Compiled without any issues

Resolved Issues

Resolves #2785

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

Mr-Anyone commented 5 days ago

I found another two other places that uses ROBOT_STATUS:

https://github.com/UBC-Thunderbots/Software/blob/c219e83dec6199b2d841a2f4f0712b6853ccaef8/src/software/logger/coloured_cout_sink_test.cpp#L79

https://github.com/UBC-Thunderbots/Software/blob/master/src/software/logger/csv_sink_test.cpp#L57

It would be great if you remove these two lines.

potatoisagender commented 5 days ago

In the future how can I look through the repo to find these other uses?

williamckha commented 5 days ago

In the future how can I look through the repo to find these other uses?

Most IDEs have a "find in all files" feature (ctrl+shift+f in CLion and VS Code). Or you can use grep or ag in the terminal

williamckha commented 5 days ago

I'd also suggest reopening this PR using the Grayson/Remove-Robot-Status branch on your fork as the head ref and not the master branch on your fork. You don't have to merge your Grayson/Remove-Robot-Status changes into master on your fork! Ideally your fork's master should stay in sync with upstream's master.

Reset the last two commits on your fork's master with

git checkout master
git reset --hard HEAD~2
git push origin master --force
potatoisagender commented 5 days ago

Yeah it was a mistake made when I was trying to figure out the git stuff. I think I've got it now. To be clear, if I push an update on a branch on my machine to github, it pushes it to a branch on the github repo on my account. Then, if I do a pull request to the shared repo, and it gets accepted, that change is integrated into the shared repo and therefore to the master branch on my account right? What do I do with the branch I made? Does it just get left as like an unmerged branch?

By reopen, do you mean close this request and open a new one from the other branch?

williamckha commented 5 days ago

To be clear, if I push an update on a branch on my machine to github, it pushes it to a branch on the github repo on my account.

Yes

Then, if I do a pull request to the shared repo, and it gets accepted, that change is integrated into the shared repo and therefore to the master branch on my account right? What do I do with the branch I made? Does it just get left as like an unmerged branch?

Yes, once your PR is accepted then the change will be merged into upstream (the shared repo) master. Then you need to manually pull changes from upstream master into your local copy of master on your computer so that your master is up to date. You can push your local master to origin/master which is master on your GitHub fork, but you don't have to do that.

Once you've merged your feature branch into upstream master, you can delete the branch from your fork and on your computer.

By reopen, do you mean close this request and open a new one from the other branch?

Yes