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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that various directories are writeable #413

Merged
merged 4 commits into from
Jul 7, 2024

Conversation

naresh-kumar-babu
Copy link
Contributor

Partial Fix #388 .

@yaronkoren
Copy link
Member

This looks good - although I would change the commit message, because this patch does not add the function make_dir_writable() (the previous patch already did that).

@naresh-kumar-babu naresh-kumar-babu changed the title making sure that various directories are writeable, via the new function make_dir_writable() make various directories writeable, via make_dir_writable() Jul 4, 2024
@naresh-kumar-babu naresh-kumar-babu changed the title make various directories writeable, via make_dir_writable() Make various directories writeable, via make_dir_writable() Jul 4, 2024
@naresh-kumar-babu
Copy link
Contributor Author

This looks good - although I would change the commit message, because this patch does not add the function make_dir_writable() (the previous patch already did that).

Updated.

@yaronkoren
Copy link
Member

Sorry for the delay. I have two comments:

  • This is pretty minor, but I think a better wording in the commit summary would "Ensure that various directories are writeable...", rather than "Make various directories writeable...", because most of the time make_dir_writable() does nothing. (Maybe the function should have a better name, given that, but that's another story.)
  • I think I never noticed before that the Wikiteq code contains that tiny update-images-permissions.sh script. It seems like a silly script - it basically just calls one line of code. Even if you add in the print command and that (maybe pointless?) sleep command, that's still just line three lines of code. I think it would be better to put this code directly into run-all.sh.

@naresh-kumar-babu naresh-kumar-babu changed the title Make various directories writeable, via make_dir_writable() Ensure that various directories are writeable Jul 5, 2024
@naresh-kumar-babu
Copy link
Contributor Author

Sorry for the delay. I have two comments:

  • This is pretty minor, but I think a better wording in the commit summary would "Ensure that various directories are writeable...", rather than "Make various directories writeable...", because most of the time make_dir_writable() does nothing. (Maybe the function should have a better name, given that, but that's another story.)
  • I think I never noticed before that the Wikiteq code contains that tiny update-images-permissions.sh script. It seems like a silly script - it basically just calls one line of code. Even if you add in the print command and that (maybe pointless?) sleep command, that's still just line three lines of code. I think it would be better to put this code directly into run-all.sh.

Done

Copy link
Member

@yaronkoren yaronkoren left a comment

Choose a reason for hiding this comment

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

This looks better, but see my comments.

@naresh-kumar-babu
Copy link
Contributor Author

This looks better, but see my comments.

Updated.

@yaronkoren
Copy link
Member

@naresh-kumar-babu - sorry, I have to apologize! I realize now why they created that separate update-images-permissions.sh file, even though it's so small - it's so that the rest of the setup process can still happen while make_dir_writable() runs across all the updated files/images. (If the code is in a separate script, it will run concurrently/asynchronously, instead of having to finish before the rest of the code runs.) There is a comment that explains this, although I think it's not that clear.

Please restore the code to back to what is was - sorry about the extra work. Although if you could make the comment clearer, that would be helpful. Also, a minor point I realized later: two of their print commands misspell "MediaWiki" as "Mediawiki".

@naresh-kumar-babu
Copy link
Contributor Author

@naresh-kumar-babu - sorry, I have to apologize! I realize now why they created that separate update-images-permissions.sh file, even though it's so small - it's so that the rest of the setup process can still happen while make_dir_writable() runs across all the updated files/images. (If the code is in a separate script, it will run concurrently/asynchronously, instead of having to finish before the rest of the code runs.) There is a comment that explains this, although I think it's not that clear.

Please restore the code to back to what is was - sorry about the extra work. Although if you could make the comment clearer, that would be helpful. Also, a minor point I realized later: two of their print commands misspell "MediaWiki" as "Mediawiki".

Updated.

Copy link
Member

@yaronkoren yaronkoren left a comment

Choose a reason for hiding this comment

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

Thank you, this looks good. I think you didn't change the comment, but that's probably fine - hopefully what is going on will be understandable.

@yaronkoren yaronkoren merged commit 22041ad into CanastaWiki:master Jul 7, 2024
1 of 2 checks passed
@naresh-kumar-babu naresh-kumar-babu deleted the make_dir_writable branch July 18, 2024 17:28
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.

Add relevant wikiteq branch changes to master
2 participants