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

ARXIVNG-1985: proxy field in Submission history should (mostly) show full text #102

Merged
merged 3 commits into from
Jun 18, 2019

Conversation

mhl10
Copy link
Contributor

@mhl10 mhl10 commented Jun 18, 2019

Some background first:

  • as of today, there are 11,270 distinct proxy names in the system
  • if you remove the proxy names that start with "ccsd", you are left with 130 distinct names
  • of the 11,140 proxy names that start with "ccsd", the names generally look like this (where N is an integer):
    ccsd ujm-NNNNNNNN
    ccsd hal-NNNNNNNN
    ccsd inria-NNNNNNNN

The classic display logic simply took the first word in the proxy name and capitalized it; I think this makes sense for the CCSD case but not necessarily others. So, in this PR I'm proposing the following changes to the display logic:

  • if the proxy name is only one word long OR starts with "ccsd", then upper case it
  • if the proxy name is more than one word long, display it as is, with tex2utf filtering; trail with "as proxy" instead of just "proxy"

Examples "proxy name" -> display:

  • "ccsd hal-00460810" -> [via CCSD proxy]
  • "ccsd inria-00460912" -> [via CCSD proxy]
  • "vtex" -> [via VTEX proxy]
  • "Martin Wolf" -> [via Martin Wolf as proxy]
  • "Hajnal Andr'eka" -> [via Hajnal Andréka as proxy]

@mhl10 mhl10 requested review from bdc34 and jimentwood June 18, 2019 13:54
12 Jun 2019: <a href="http://bit.ly/arXivExecutiveDirector3">We are hiring: Executive Director of arXiv</a><br/>
11 Jun 2019: <a href="https://arxiv.org/new/#june11_2019">Announcing a new category and category mergers</a><br/>
20 May 2019: <a href="http://bit.ly/arXivEngineer4">We are hiring: arXiv Service Reliability Engineer</a><br/>
18 Jun 2019: <strong>Attention Users</strong>: at 8AM ET / 12PM UTC on Friday, June 21, the submission system will be unavailable for approximately 30 minutes for routine maintenance.<br/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't this part of an earlier PR?

@@ -1,3 +1,5 @@
{# donation banner #}
{%- if 0 -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

Wasn't this part of an earlier PR too? Or maybe this isn't important because that is already in develop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is here "ARXIVNG-2229: Add news item and user banner message for submission system downtime #101"
/~https://github.com/arXiv/arxiv-browse/pull/101/files#diff-6a4474b

It doesn't matter once merged to develop. Once you were done with ARXIVNG-2229 you might have made the ARXIVNG-1985 feature branch off of that instead of develop. I do this frequently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I see, my bad!

Copy link
Collaborator

@jimentwood jimentwood left a comment

Choose a reason for hiding this comment

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

Looks good.

@mhl10 mhl10 merged commit 89245dc into develop Jun 18, 2019
@mhl10 mhl10 deleted the ARXIVNG-1985 branch June 18, 2019 19:51
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.

3 participants