Skip to content

Refactor where we are calling out to update symlinks #3753

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

Closed
agjohnson opened this issue Mar 7, 2018 · 5 comments
Closed

Refactor where we are calling out to update symlinks #3753

agjohnson opened this issue Mar 7, 2018 · 5 comments
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code
Milestone

Comments

@agjohnson
Copy link
Contributor

There are a number of questions I don't think we have answers for around symlinking, and a number of bugs that are present because of this. Our patterns for when to update our symlinks are a bit inconsistent and so it might help to formalize on this.

Right now:

  • Some symlinking happens on model save -- this makes sense as a central point for updating
  • Some symlinking happens in tasks -- when builds are complete, they fire off their own symlink update tasks
  • Some symlinking happens from form save -- this could probably be moved to model .save()

While it might not be able to accumulate these calls in model .save() methods, there might be other patterns that we can make use of here to simplify the logic.

The design decision here lies around which pattern works best and makes the code more understandable. Before any of us can weigh in on which pattern would work, we'll need to:

  • Enumerate where we are calling symlink code now
  • Note the purpose for each call to update our symlinks

From there, we can make a decision about if the current location of the calls to update our symlinks make sense, or if we can centralize and standard on a pattern.

Raised in #3649

@agjohnson agjohnson added Needed: design decision A core team decision is required Needed: more information A reply from issue author is required labels Mar 7, 2018
@agjohnson agjohnson added this to the Refactoring milestone Mar 7, 2018
@agjohnson agjohnson changed the title Refactor how we are deciding to symlink Refactor where we are calling out to update symlinks Mar 7, 2018
@ericholscher
Copy link
Member

💯 -- we definitely need to simplify this logic, but I agree that there isn't one obvious path forward.

@humitos
Copy link
Member

humitos commented Nov 15, 2018

Linking #4550 here since we are planning to remove the symlinks and this issue could be closed if that happens.

@no-response
Copy link

no-response bot commented Jan 10, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. Thanks!

@no-response no-response bot closed this as completed Jan 10, 2019
@stsewd
Copy link
Member

stsewd commented Jan 10, 2019

I don't think this should be closed, but looks like a low priority refactor.

@stsewd stsewd reopened this Jan 10, 2019
@stsewd stsewd added Improvement Minor improvement to code Accepted Accepted issue on our roadmap and removed Needed: design decision A core team decision is required Needed: more information A reply from issue author is required labels Jan 10, 2019
@stsewd
Copy link
Member

stsewd commented Apr 30, 2019

We are definitely going to remove symlinks, so closing :)

@stsewd stsewd closed this as completed Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Improvement Minor improvement to code
Projects
None yet
Development

No branches or pull requests

4 participants