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

Improve ajax behavior; miscellanneous fixes #1026

Merged
merged 4 commits into from
Mar 11, 2021

Conversation

kouralex
Copy link
Contributor

@kouralex kouralex commented Jul 9, 2020

This PR fixes/implements the following:

  • implement aborting of unnecessary requests (via implementing different types of queues for content and sidebar)
  • fix issue with plugin-induced content appended whilst ajaxing
  • fix throbber icon not showing on hierarchy whilst ajaxing

However, there remains more to be done, e.g., enabling the usage of ajax requests in cases such as clicking a concept on content page, clicking vocabulary title, moving back/forth search and content pages, clicking hierarchy causes an extra page load in some circumstances, etc. Similarly, much of the code could and should be refactored - no need for duplicate code.

…t aborting of unnecessary requests; fix issue with plugin-induced content appended whilst ajaxing
@kouralex kouralex added this to the Next Tasks milestone Jul 9, 2020
@kouralex kouralex requested a review from joelit July 9, 2020 19:40
@sonarcloud
Copy link

sonarcloud bot commented Jul 9, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Jul 9, 2020

Codecov Report

Merging #1026 (ebd2d68) into master (78dc205) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1026   +/-   ##
=========================================
  Coverage     67.90%   67.90%           
  Complexity     1583     1583           
=========================================
  Files            32       32           
  Lines          3889     3889           
=========================================
  Hits           2641     2641           
  Misses         1248     1248           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78dc205...ebd2d68. Read the comment docs.

@joelit joelit self-assigned this Mar 10, 2021
Copy link
Contributor

@joelit joelit left a comment

Choose a reason for hiding this comment

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

The ajax queue is a bit difficult to review and test, but as far as I can see this is a improvement when changing between concepts while the ajax is still loading.

@sonarcloud
Copy link

sonarcloud bot commented Mar 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kouralex kouralex merged commit 54ed5bf into master Mar 11, 2021
@kouralex kouralex deleted the issuexxxx-improve-ajax-behavior branch March 11, 2021 19:32
@kouralex kouralex modified the milestones: Next Tasks, 2.10 Mar 11, 2021
kouralex added a commit that referenced this pull request Mar 11, 2021
kouralex added a commit that referenced this pull request Mar 11, 2021
…rtifact

fix merge conflict regression related to PR #1026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants