-
Notifications
You must be signed in to change notification settings - Fork 198
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
stop displaying and serving authorship information #1322
Conversation
This is wrong, it also prevents viewing pages by the owner. It should only remove |
@jyn514 Do we need to rename these api and routing parameters? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to rename where appropriate, but that seems less important to be done straight away. We also need to stop recording the data we're no longer displaying, and then delete the existing data from the database. I think it would make sense to open a local tracking issue here so those steps can be done independently.
Can you add a test for what happens when you try to request an owner instead of an author? There are some examples near the end of src/web/releases.rs. |
I think we already have |
@jyn514 Thank you for your review. |
Sorry, I meant to say "an author instead of an owner". The existing tests are only for when the owner is found, not when there's an error. |
Add |
@jyn514 I think it's ready for review. |
@rustbot label: -S-waiting-on-author +S-waiting-on-review |
Thanks. That shows the error message was wrong: you returned the right error, but the handler ignores it, which was the long-standing bug the comments didn't describe very well. I opened #1326 fixing it, I'd prefer to wait for that before merging. |
Got it. Besides this issue, is there anything else that needs to be changed in this PR? |
@hi-rustin I don't plan to review this again until #1326 is merged. Feel free to ping me if I forget :) |
@@ -90,21 +90,6 @@ | |||
</li> | |||
</ul> | |||
</div> | |||
|
|||
{# Show the crate authors #} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you show the owners instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am currently unable to check the topbar related pages because I am having problems with add-essential-files.
See: rust-lang/rustwide#41 (comment)
So I don't know if the whole topbar is currently displayed properly. Can you help check it? Or do you have any suggestions for solving the above problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have working IPv6 then https://docs.rs.dev.nemo157.com/ is running this PR currently, looks like it's working to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the code, I should have used the correct field.
docs.rs/src/web/crate_details.rs
Line 19 in a0438c4
owners: Vec<(String, String)>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have working IPv6 then https://docs.rs.dev.nemo157.com/ is running this PR currently, looks like it's working to me.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am having problems with add-essential-files.
See: rust-lang/rustwide#41 (comment)
@jyn514 @Nemo157 Do you have any suggestions to solving this?
revert owners fix order refine header comment test: add cases fix add author nope fix better msg fix rename api and route owner support without @ refine msg refine msg add more cases add owner add nonexistent_owner test rename fix test address comments fix test fix test add owners for topbar fmt code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks!
See: rust-lang/rust#83227
Part of #1323