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

Speed and error handling imrovements for project timeline webpart #771

Merged
merged 15 commits into from
Sep 14, 2022

Conversation

Remi749
Copy link
Collaborator

@Remi749 Remi749 commented Sep 14, 2022

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your main!
  • Make sure you are making a pull request against the dev branch (left side). Also you should start your branch off dev.
  • Check the commit's or even all commits' message
  • Check if your code additions will fail linting checks
  • Remember: Add issue description to CHANGELOG with the ID of the issue associated with this PR
  • Documentation: Have a look at the PP365 User manual and consider the need for updates to be made. Updates can be done directly into the 'Kladd' branch or by providing information to test team for implementation.

Description

This Pull request improves the load speed for project timeline webpart drastically. For a portfolio of 40 projects this is a before/after of how many calls are now made when loading the timeline webpart (see images)

Before (84 calls) After (3 calls)
imageimage image

As well as improving the load speed by reducing the amount of calls needed to fetch data, better error handling has been implemented for the timelines.

Example:
Screenshot at Sep 13 18-53-20

This will give the user exact information as to what has gone wrong. This will fix issue: #755

Additions beyond the relevant issues:

  • Adjustment to height of timeline in portfolio, fixing issue where users couldn't see the callout properly
Before After
image image

How to test

  1. Load timeline
  2. Witness speed like never before

Relevant issues (if applicable)

#743 , #755

@Remi749 Remi749 added bug Something isn't working enhancement Request that will enhance the product complexity: small Issue/PR with small complexity backend Related to backend/apis frontend Related to frontend labels Sep 14, 2022
@Remi749 Remi749 added this to the 1.7.0 milestone Sep 14, 2022
@Remi749 Remi749 requested a review from olemp as a code owner September 14, 2022 16:30
@Remi749 Remi749 self-assigned this Sep 14, 2022
@Remi749 Remi749 merged commit cf2d826 into dev Sep 14, 2022
@Remi749 Remi749 deleted the issue/#743 branch September 14, 2022 16:53
Remi749 added a commit that referenced this pull request Sep 14, 2022
* Risk matrix can now be customized

* If custom cells is found, these will be used over standard cells.

* Update after test

* Linting

* Removed some styling

* "Stop function" when someone tries to add site template "Prosjektområde" at portfolio level  (#748)

* Update changelog + fix grammar

* fix for #648 using /_api/siteiconmanager/getsitelogo instead of base64 from graph (#751)

* using /_api/siteiconmanager/getsitelogo instead of base64 representation of logo loaded from the graph. removing functionality for getting logos from graph

* updating changelog

* removing unused imports

* adding flag to UpgradeAllSitesToLatest and capability for adding plans to project sites missing a planner plan (#753)

Looks great, thanks @okms

* minor: changing to -UseWebLogin in order to target legacy PnP powershell module

* Add PERMISSIONS markdown file + Readme for sitescripts

* Update PERMISSIONS.md

* Fix for bug where default column values were wiped when importing documents through TemplateSelector dialog (#769)

* Replace addChunked with addUsingPath to persist location default values

* Update to changelog

* Update ReactMarkdown to latest throughout solution (#770)

* Update ReactMarkdown to latest throughout solution

* Remove children prop from ReactMarkdown

* Speed and error handling imrovements for project timeline webpart (#771)

* Use siteId when grouping timeline elements

This is to fix issue if a project's site has been changed

* Use siteId when grouping timeline elements

This is to fix issue if a project's site has been changed

* Add UserMessage as a shared component

* Move FilterPanel and UserMessage to @shared

* Revert FilterPanel back to portfoliowebparts and minor fixes

* Fix problem with dataSource for BenefitsOverview on Projectlevel

* Minor cleanup

* Improve error handling of projecttimeline on portfoliolevel

* Removed unnecessary calls to timelineconfig list

* Fix amount of calls for config and status report data

* Add more error handling to Projectlevel timeline

* Adjustments to height for timeline on portfoliolevel

* Hide error messages in StatusReport regarding Projectproperties

* Linting + changelog

* Risk matrix can now be customized

* If custom cells is found, these will be used over standard cells.

* Update after test

* Linting

* Removed some styling

* Update changelog

Co-authored-by: Martin Ruud <[email protected]>
Co-authored-by: Ole Kristian Mørch-Storstein <[email protected]>
Co-authored-by: TinHoangVu <[email protected]>
Co-authored-by: Remi Blom-Ohlsen <[email protected]>
Co-authored-by: Ole Kristian Mørch-Storstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend/apis bug Something isn't working complexity: small Issue/PR with small complexity enhancement Request that will enhance the product frontend Related to frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant