Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show hidden file in speedgrader #1335

Merged
merged 1 commit into from Apr 25, 2021
Merged

Show hidden file in speedgrader #1335

merged 1 commit into from Apr 25, 2021

Conversation

xinyis991105
Copy link
Contributor

Description

This PR addresses #1166.

Motivation and Context

The current master does not support showing hidden files whose file name starts with a period, which could be problematic for some instructors. This is now enabled.
(To whoever reviews this PR: But can I know why hidden files are also considered mac_bs_file in the archive library? What does the term mean in the first place? 馃槀 )

How Has This Been Tested?

Submit an archive file with a hidden file in it. It should now appear alright in the speedgrader.
hidden file

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation, which is located at Autolab Docs
  • I have updated the documentation accordingly, included in this PR

Other issues / help required

If unsure, feel free to submit first and we'll help you along.

@@ -25,8 +25,7 @@ def self.get_files(archive_path)
header_position: i,
mac_bs_file: pathname.include?("__MACOSX") ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to your changes but "__MACOSX" is a folder not a file. Therefore, it still appears in the speedgrader.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to make sure, does it mean we don't want to display any folders in the archive that contains "__MACOSX"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup. That's a folder that mac creates when someone archives something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool I'll submit another PR to fix this soon!

@amartinez116
Copy link
Contributor

LGTM. I think they called it "mac_bs_file" because of all the extra files macs make :/ also can we make a separate task for the "__MACOSX" folder issue?

@amartinez116 amartinez116 self-requested a review April 25, 2021 17:29
@xinyis991105 xinyis991105 merged commit 101cc42 into master Apr 25, 2021
@xinyis991105 xinyis991105 deleted the hidden_speedgrader branch April 25, 2021 17:47
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.

Hidden files in archive with filenames beginning with . (period) do not appear on Speedgrader
2 participants