Skip to content

Scaladoc sends exponentially many requests when switching between docs and API using the logo in the top left corner #19371

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
Katrix opened this issue Jan 4, 2024 · 0 comments · Fixed by #19337
Assignees
Milestone

Comments

@Katrix
Copy link
Contributor

Katrix commented Jan 4, 2024

Compiler version

3.3.1 (Although it seems to happen on the current Nightly for the dotty docs too)

Steps to reproduce

  1. Go to https://dotty.epfl.ch/api/index.html
  2. Open the networks tab, or console and enable XHR
  3. Click on API in the sidebar
  4. Click on the logo in the top left of the page. (One request sent)
  5. Click on the logo in the top left of the page. (One request sent)
  6. Click on the logo in the top left of the page. (Two request sent)
  7. Click on the logo in the top left of the page. (Two request sent)
  8. Click on the logo in the top left of the page. (Four request sent)
  9. Click on the logo in the top left of the page. (Four request sent)
  10. Click on the logo in the top left of the page. (Eight request sent)
    ...

Alternating between API and Docs in the sidebar does not seem to trigger it, although doing that a few times and then clicking on the logo does trigger it, and sens requests based on how many times one has switched back and forth.

Expectation

One request should be sent for each click

@Katrix Katrix added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 4, 2024
@jchyb jchyb added area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Jan 9, 2024
@Florian3k Florian3k linked a pull request Jan 16, 2024 that will close this issue
1 task
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants