-
Notifications
You must be signed in to change notification settings - Fork 308
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
Optimize imports #444
Optimize imports #444
Conversation
+1; however, a nit: this PR breaks the spacing and ordering guidelines we've been using for our imports. Would it be easy to clean up the sorting/ordering issues? |
We should have a followup PR which adds something like Scala Refactoring to enforce the import guidelines automatically. I ran Intellij's "Optimize Imports" and then scalariform:format to create this PR. Manually reorganizing the imports would be painful. |
Test PASSed. |
This looks ready to ship. I'll open an issue for the Scala Refactoring work. |
@massie can you open an issue and update your commit message? |
Do you mean I should open an issue called "Optimize Imports" and then prefix the commit message with the issue? If so, what is the point of that process? |
I think Frank is just asking for an issue along the lines of our writeup in the CONTRIBUTING.md document,
Do we want to revisit the discussion around this process as a whole? I don't think any of us are trying to add unnecessary protocol or rigamarole, but I think the original justification was that it helps to have one place (the "Issues" page) where we can go and see all past, present, and future changes, with notes explaining why (for our own sake later). |
I think just changing this commit message to reference "[ADAM-445]" as its prefix would be enough to get us moving, right Frank? |
I agree that if someone submits a PR to fix a specific existing issue that they should link the two. However, it seems unnecessary to require all PRs to have an issue. |
Guys, I'm agnostic on this. I don't think it's that big a deal except that I think we should state a plan in our CONTRIBUTING.md doc and stick with it. |
Putting the ADAM-445 prefix denotes that we've fixed 445, correct? That's isn't the case here. I agree we need to update the CONTRIBUTING.md document. Let's keep things as light as we can. If a process doesn't make sense -- let's remove it. |
Can you come into IRC Matt? :-D |
I think I misunderstood the extent of #445's suggestion, please disregard that last comment. I'm off to meet someone for a coffee for a few minutes, but maybe some of us could have a real-time discussion about this. People seem unnecessarily frustrated, that doesn't need to happen. |
I'd also like to see this PR integrate #445 as well, if possible, esp since this PR breaks the import formatting guidelines in CONTRIBUTING.md:
@tdanford this PR doesn't fix #445, it opens #445. @massie I think that there should be a 1:1 linking between commits and issues. By being consistent with this, it's easy to track down the lineage of a change:
|
I do agree that the issue<->commit link seems a bit heavy for small PRs (e.g., #437), but this PR touches 138 files and would (temporarily?) change the format standards we are using in the repo. |
When we have dozens of large companies contributing large changes to this code base, we might want to enforce a more dogmatic 1:1 link between PR and issues. Often times, issues are used to organize major software releases, deciding what's in and out, tracking progress to a milestone, etc. We are not there yet. Anyone with any software experience who looks at this commit will understand immediately what it does. It doesn't matter if it touches every file. |
I've opened #447 so that we can talk about the contribution guidelines there. This commit looks ready to ship to me. What say you? |
I'd prefer to see this PR address #445 before merging. |
What harm are you trying to avoid by not merging this now? This commit removes all the unused imports littering our codebase now. I will work on sorting the imports to everyone's liking in another PR. Is this really a blocker? |
I'm going to close this for now and open a new pull request later which automates import cleanup and ordering. |
We have lots of unused imports. This PR cleans them up.