-
Notifications
You must be signed in to change notification settings - Fork 270
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
feat: (partially) revamp todo #5107
Conversation
@mitchellwrosen you can move a term to a subnamespace, then You could use |
Can also use |
I've added a transcript that uses |
Agreed. I really want to have good transcript coverage of our user-facing messages though; for example right now we can't easily review what the output is for that feature. How can we get this? A screenshot is a baseline starting point, but they can go out of date easily, thus transcripts. What about a small test branch on share that the transcript pulls. I did this in |
I still think this:
Unless you mean how can we get this before merging? |
(btw, the output for that hasn't changed since the original |
Yeah, whenever possible, I really want to have good transcript coverage of our user-facing messages when we merge them. I understand that for this PR, that portion of the output should be the same as whatever it was before, but as far as I know we don't have any transcript coverage of that either. (Do we?)
Scheduling a separate task to create a new command just to produce the test case that we don't even want to be possible sounds like something we'll never do. 😅 (And arguably shouldn't do.) Since it is possible to create this namespace today with |
Hrm, I don't like the I'd vote using |
Ok, I added |
^ Could you say more? |
Sure, I think minimizing the number of tests that hit the network is a good thing. In this case, there doesn't seem to be a need to hit the network. I think that perhaps your thinking is we already have some namespace that has conflicted names somewhere on Share, and we can just use that. Did I misunderstand all along what the proposal was? A test seems a lot easier to understand and modify if it's all "local" and in the test file itself. If the test has to download some opaque thing and then assert properties about it, that's more indirect and confusing, and getting in there to adjust the thing that it downloads would be a chore. So, again, if I've misunderstood the proposal, let me know. Otherwise, I think all that stands. |
Maybe :) My proposal was to use legacy ucm to construct and post a minimal legacy namespace on Share for the test, enabling us to delete the undesired functionality from
The issue you raised (don't want to make it harder to rip out
I agree, though it wouldn't be an opaque thing (it would be browsable on Share), and it shouldn't be adjusted either. So my thinking is:
To me, "minimize the number of tests that hit the network" is the lowest priority of the three, so that's where the proposal came from. |
merging to get this in while we discuss next steps |
Overview
Related: #5088
This PR deletes most of the old
todo
's functionality (related to patches) and adds back two features:todo
tells you about conflicted namestodo
tells you about direct dependencies that don't have namesLeft for future work are the other things specified in #5088: merge precondition violations and dependents of the
todo
builtin termTest coverage
I unfortunately did not see a slam-dunk way to make a transcript for this.
alias.term.force
command, asalias.term
complains "a term by that name already exists".delete.term.force
command, asdelete.term
currently does allow you to delete the last name for a direct dependency, but really shouldn't (right?!)So, as of this moment, I've only manually tested
todo
, but it does appear to work.