-
Notifications
You must be signed in to change notification settings - Fork 0
Updated stuff #2
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
Open
AOsnes
wants to merge
4
commits into
AOsnes:master
Choose a base branch
from
P3SW:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* changed file position for setup.txt and changed the readme * change div so it's correct * Test * typo * removed unused directories * Added managers to the list of queries in streaming * changed time * trying to make backend work with database * changes made * changes made * The program can now query data from the database, but it is still fucked a bit * Update * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * Changed query string for manager_tracking and changed the start time for stream * HUGE CHANGE PART 1 This is a huge commit, and it involves several things (Some of these things are not done yet, and will be in another commit): 1. The DataStreamingSimulation and BlazorApp are now in one solution, which is more structured 2. The (old) TableStreamer.cs and IData.cs are now in a Library Class where they are give new names. This makes them less specific to the BlazorApp. 3. ErrorLog.cs, and ReconciliationLog.cs will be in one class aswell as ErrorData.cs and ReconciliationData.cs. It was just the same code (mostly). (Not finished/ Work in progress) 4. The classes have been given new names. The names refer to what the class do, and not what they are in the problem domain. This makes it easier to see what each class do. 5. Working on making the ConversionDataAssigner.cs query the start times of the managers and initiate them in that way. (Work in progress) * Moved project dir and added mac os file to gitignore * Dont know wth happend, but had to add all files again... * Event demo * Changed back to using manager queue, also deleted ErrorData.cs and ErrorLog.cs, because we are using LogDataHandler.cs and LogData.cs * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Init SQLDatabaseRead.Test * SQLDependencyListener refactor fix * Unit Test * working on starting managers correctly * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs * Takes data from test data, and added queue-chain + popup box (#36) * Removed var variable * placeholders for manager queue * CSS changes Added background to doughnut charts. Added padding to dropdown menu and changed its font size * Changed padding size to rem * Update BlazorApp.csproj * Add max height and stepsize for y Axis * change div so it's correct * Test * typo * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: Racermus01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas <andreas090994@gmail.com> * Events suvscriber * Name change * Fix mistake * Conversion now runs successfully (#37) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * Implemented data to ErrorTable.razor * Fixed naming * implemented so the program now uses MANAGER_TRACKING to query end time (#39) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * runtimeOverall is now queried from the MANAGER_TRACKING table because it now has timestamps * added important text to README and deleted unused code * Things that didn't get fixed with the fetch Done so the branch is up to date with the upstream * Manager hoverbox now follows the mouse also a triangle at the bottom has been added * Updated events implementation * Made Current manager data dynamic * Trying session storage * Update * Styling for Error-table and Reconcilation-table + minor fixes (#40) * Minor changes to scrollbar design Looks like Figma design now. Small issue with scaling of the border when zooming. * Changed border radius on scrollbar * Fixed margin on manager queue in summary * Restructering of overview to make tables CSS-able * Fixed indentation * Basic table CSS + 1 out of 10 table's CSS fixed * Fixing overflow on tables WIP * Resizing of entire table * Errors view styling done * Reconciliation view styling done + Added and edited some test data * Made the error and recon event sort of work, but the table wont update, i had to make ConversionDataAssigner.cs static Deleted tailwind files because we dont use it anymore * Fixed healthdatatest * Clean up * Revert "Made current manager recons/errors update dynamic" * Fixed merge conflicts * fixed merge conflict * The error and reconciliation tables now updates automatically * Overview gets data * Added more methods that show data from lists Also added a method that converts the runtime to an hh:mm:ss format * Update BlazorApp.csproj Removed session storage Package * Update HealthDataHandler.cs Deleted comment * removed files * Update LogDataHandler.cs Deleted comment * changes made * Update SQLDependencyListener.cs internal to private * Preparing for pull request into dev (db things not working rn) * Removed bugfix writelines * Started testing * Fixed Test data * Overview updated * Fixed x-axis overflow on tables + added unused utility function for checking overflow. (#48) * Tidy in Overview.razor Removed empty lines. Fixed typos in comments. Simplified code. * WIP Overflow handling + overflow dropdown button styling Also added a bit of dummy data to simulate overflow, as well as fixing some indentation in _Host.cshtml * WIP * WIP overflow checker Currently works in .razor files, but not in Radzen. * Resize the side-scrollbar * Temp fix for x-axis overflow on tables Also added OverflowChecker.js utility function to detect overflow, but it doesn't work the same in .razor as in Radzen. Unsure how to implement, hence the temp fix. * Update ReconciliationTable.razor * Update .gitignore * Fix manager name overflowing * Overview piechart working 1/2 * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates * Fixede Error in dev and added pageing (#50) * Fixed Test data * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> * Created component for efficiency table for the Overview page * Errors queried with execution_id (#51) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Overview piechart working 2/2 + Current errors/recon working * WIP Efficiency table Can show and calculate score, but sorting makes it crash and it only updates when you go into errors or recons. * Fixed ArgumentNllException at Overview.razer reload + removed Console.WriteLine() and comments * Created one radzen component for both error and reconciliation table (#53) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Created a log table component, that takes in parameters. This means that both Errors.razor and Reconciliations.razor uses the same component * LineChart working 1/2 with data * Table almost complete Table is now sortable. Also shows memory used (sometimes gives value 0, despite there being memory. might have to do with retrieving data from tables). > Not done: - Need to implement coloured background if score = 0 - Need to show type in tables (e.g., CPU 20% and not CPU 20) - Add border to table titles (good luck) * Linegraph update with event * Efficiency table update Shortened the manager name on the frontend. cpu and memory is shown as %. time ran is in hh:mm:ss format. height of table is no longer messed up. Still needs background colour based on efficiency score. * Mem.NumericValue to GB * Change colour on text if efficiency score is 0 * Changed colouring condition * Multiplied efficiency score by 10 * Change class public and bytes to GB * Fixed calculation for avg memory. Now doesn't show 0 memory unless its actually 0 * Into diffrent components.razor.pages * Efficiency table now updates automatically * Removed comments * Fixed pages css files * HealtReport code isolated * Overview.razor code split into Summary.razor and HealtReport.razor * HealtReport clean up done * Summary.razor clean up done * Small fixes * 100 -> 1000 * CSS split * Code moved to bottom + CSS removed * 2K CSS removed * Tidy + small adjustments (#59) * Created utility function for shortening manager name and fixing timestamps * Implemented utility methods + fixed ellipsis not showing + margin adjustment on summary * Remove whitespace * Memory usage in health report fixed now shows percentage memory used. Also made a utility function for memory calculations. * tidy * Logdate updating fix * Fix Bisgaard's crust * Added calculations for total rows read and written and median efficiency score This includes a method that returns a list ordered by efficiency score * Data from MANAGER_TRACKING should never be null now (#76) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * LineChart use stored data * Minor fixes removed bottom border in summary and fixed median when there are no managers * Program works again * Fixed overflow exception for efficiency score calculation * Temp fix for the overflow on efficiency score * Fixed summary layout a bit * EfficencyTable event fixed - Updates at WatchManager(), OverviewTriggerUpdate * Added file for summary efficiency table * LineChart update at new health data * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * DOM tree LineChart * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * Summary efficiency table implemented + minor fixes (#80) * Fixed summary layout a bit * Added file for summary efficiency table * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * fixed linegraph points and animation * Removed unnecessary commas * Removed more unnecessary commas * fixed animation when fading away point * Added runtime on summary * Fixed wrong break * Fix to ensure MedianEfficiencyScore method doesn't cause an error * Fixed height of tables * Allow paging on efficiency table after 150 entries * Tidy CSS for Radzen tables Couldn't move it. Correct indentations. Removed excess CSS. * Styling for page-buttons * Summary is now more readable Bold font on data. Centered text for worst scoring managers * Tests (#87) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * Fix to issue #69 * Fixed favicon * Tidy * Style adjustment to tables + overflow fix on summary component * Runtime fix so it works for everyone * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Fix to issue #69 again + tidy * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Display line chart specific data for each manager + 'Track current manager' feature (#94) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Shorten manager names on all tabs * Moved @code under the radzen table * Tidy (#95) * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Shorten manager names on all tabs * Moved @code under the radzen table Co-authored-by: AlexanderSteffensen <asteff20@student.aau.dk> * Removal of unused code & libraries * Custom checkbox for HealthReport.razor + fixed labels * Additional tidy * Program now also works when the conversion is finished (#105) * Program now also works when the conversion is finished * Removed comments * Filtering in manager efficiency score by name works (#106) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * Unit tests and Integrations tests (#107) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * Duplicate memory and cpu fixed (#108) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Changed efficiency score calculation (#109) * Code clean up (#110) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Added CreatePieChart() + ClearPieChart() * Clean up * Removed commented code Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> * Fixed EfficiencyScore and LOGGING queries (#111) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * Fixed inner join query to include the execution id * Fixed the LOGGING query * Pulled changes from upstream * Uncrusted Bisgaard's changes in CalculateEfficiencyScore * minor fixes * final commit * Commented code and uncrusted GetLogList * Removed last prints * Deleted unused database in blazor backend frontend integration test (#113) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Fixes to manager selecting in health report (#112) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Changed class name (#115) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Quick fix to two errors we get in summary due to collection changes while it is being used (#114) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Fixes two out of three(?) "Collection was modified; enumeration operation may not execute" errors * Update README.md * Commenting the frontend (#116) * Changed efficiency score calculation * Commenting the front end * Changed class name in SQLScriptExecuter.cs (#117) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Changed class name in SQLScriptExecuter.cs * Added MANAGER_TRACKING_patcher.sql and ManagerTrackingFixer Co-authored-by: Andreas <andreas090994@gmail.com> Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: Bisgaard01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <aahlbe20@student.aau.dk> Co-authored-by: Arthur Osnes Gottlieb <49974857+AOsnes@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <74188324+AndreasAhlbeck@users.noreply.github.com> Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> Co-authored-by: Andreas <aalstr20@student.aau.dk>
* change div so it's correct * Test * typo * removed unused directories * Added managers to the list of queries in streaming * changed time * trying to make backend work with database * changes made * changes made * The program can now query data from the database, but it is still fucked a bit * Update * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * Changed query string for manager_tracking and changed the start time for stream * HUGE CHANGE PART 1 This is a huge commit, and it involves several things (Some of these things are not done yet, and will be in another commit): 1. The DataStreamingSimulation and BlazorApp are now in one solution, which is more structured 2. The (old) TableStreamer.cs and IData.cs are now in a Library Class where they are give new names. This makes them less specific to the BlazorApp. 3. ErrorLog.cs, and ReconciliationLog.cs will be in one class aswell as ErrorData.cs and ReconciliationData.cs. It was just the same code (mostly). (Not finished/ Work in progress) 4. The classes have been given new names. The names refer to what the class do, and not what they are in the problem domain. This makes it easier to see what each class do. 5. Working on making the ConversionDataAssigner.cs query the start times of the managers and initiate them in that way. (Work in progress) * Moved project dir and added mac os file to gitignore * Dont know wth happend, but had to add all files again... * Event demo * Changed back to using manager queue, also deleted ErrorData.cs and ErrorLog.cs, because we are using LogDataHandler.cs and LogData.cs * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Init SQLDatabaseRead.Test * SQLDependencyListener refactor fix * Unit Test * working on starting managers correctly * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs * Takes data from test data, and added queue-chain + popup box (#36) * Removed var variable * placeholders for manager queue * CSS changes Added background to doughnut charts. Added padding to dropdown menu and changed its font size * Changed padding size to rem * Update BlazorApp.csproj * Add max height and stepsize for y Axis * change div so it's correct * Test * typo * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: Racermus01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas <andreas090994@gmail.com> * Events suvscriber * Name change * Fix mistake * Conversion now runs successfully (#37) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * Implemented data to ErrorTable.razor * Fixed naming * implemented so the program now uses MANAGER_TRACKING to query end time (#39) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * runtimeOverall is now queried from the MANAGER_TRACKING table because it now has timestamps * added important text to README and deleted unused code * Things that didn't get fixed with the fetch Done so the branch is up to date with the upstream * Manager hoverbox now follows the mouse also a triangle at the bottom has been added * Updated events implementation * Made Current manager data dynamic * Trying session storage * Update * Styling for Error-table and Reconcilation-table + minor fixes (#40) * Minor changes to scrollbar design Looks like Figma design now. Small issue with scaling of the border when zooming. * Changed border radius on scrollbar * Fixed margin on manager queue in summary * Restructering of overview to make tables CSS-able * Fixed indentation * Basic table CSS + 1 out of 10 table's CSS fixed * Fixing overflow on tables WIP * Resizing of entire table * Errors view styling done * Reconciliation view styling done + Added and edited some test data * Made the error and recon event sort of work, but the table wont update, i had to make ConversionDataAssigner.cs static Deleted tailwind files because we dont use it anymore * Fixed healthdatatest * Clean up * Revert "Made current manager recons/errors update dynamic" * Fixed merge conflicts * fixed merge conflict * The error and reconciliation tables now updates automatically * Overview gets data * Added more methods that show data from lists Also added a method that converts the runtime to an hh:mm:ss format * Update BlazorApp.csproj Removed session storage Package * Update HealthDataHandler.cs Deleted comment * removed files * Update LogDataHandler.cs Deleted comment * changes made * Update SQLDependencyListener.cs internal to private * Preparing for pull request into dev (db things not working rn) * Removed bugfix writelines * Started testing * Fixed Test data * Overview updated * Fixed x-axis overflow on tables + added unused utility function for checking overflow. (#48) * Tidy in Overview.razor Removed empty lines. Fixed typos in comments. Simplified code. * WIP Overflow handling + overflow dropdown button styling Also added a bit of dummy data to simulate overflow, as well as fixing some indentation in _Host.cshtml * WIP * WIP overflow checker Currently works in .razor files, but not in Radzen. * Resize the side-scrollbar * Temp fix for x-axis overflow on tables Also added OverflowChecker.js utility function to detect overflow, but it doesn't work the same in .razor as in Radzen. Unsure how to implement, hence the temp fix. * Update ReconciliationTable.razor * Update .gitignore * Fix manager name overflowing * Overview piechart working 1/2 * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates * Fixede Error in dev and added pageing (#50) * Fixed Test data * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> * Created component for efficiency table for the Overview page * Errors queried with execution_id (#51) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Overview piechart working 2/2 + Current errors/recon working * WIP Efficiency table Can show and calculate score, but sorting makes it crash and it only updates when you go into errors or recons. * Fixed ArgumentNllException at Overview.razer reload + removed Console.WriteLine() and comments * Created one radzen component for both error and reconciliation table (#53) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Created a log table component, that takes in parameters. This means that both Errors.razor and Reconciliations.razor uses the same component * LineChart working 1/2 with data * Table almost complete Table is now sortable. Also shows memory used (sometimes gives value 0, despite there being memory. might have to do with retrieving data from tables). > Not done: - Need to implement coloured background if score = 0 - Need to show type in tables (e.g., CPU 20% and not CPU 20) - Add border to table titles (good luck) * Linegraph update with event * Efficiency table update Shortened the manager name on the frontend. cpu and memory is shown as %. time ran is in hh:mm:ss format. height of table is no longer messed up. Still needs background colour based on efficiency score. * Mem.NumericValue to GB * Change colour on text if efficiency score is 0 * Changed colouring condition * Multiplied efficiency score by 10 * Change class public and bytes to GB * Fixed calculation for avg memory. Now doesn't show 0 memory unless its actually 0 * Into diffrent components.razor.pages * Efficiency table now updates automatically * Removed comments * Fixed pages css files * HealtReport code isolated * Overview.razor code split into Summary.razor and HealtReport.razor * HealtReport clean up done * Summary.razor clean up done * Small fixes * 100 -> 1000 * CSS split * Code moved to bottom + CSS removed * 2K CSS removed * Tidy + small adjustments (#59) * Created utility function for shortening manager name and fixing timestamps * Implemented utility methods + fixed ellipsis not showing + margin adjustment on summary * Remove whitespace * Memory usage in health report fixed now shows percentage memory used. Also made a utility function for memory calculations. * tidy * Logdate updating fix * Fix Bisgaard's crust * Added calculations for total rows read and written and median efficiency score This includes a method that returns a list ordered by efficiency score * Data from MANAGER_TRACKING should never be null now (#76) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * LineChart use stored data * Minor fixes removed bottom border in summary and fixed median when there are no managers * Program works again * Fixed overflow exception for efficiency score calculation * Temp fix for the overflow on efficiency score * Fixed summary layout a bit * EfficencyTable event fixed - Updates at WatchManager(), OverviewTriggerUpdate * Added file for summary efficiency table * LineChart update at new health data * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * DOM tree LineChart * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * Summary efficiency table implemented + minor fixes (#80) * Fixed summary layout a bit * Added file for summary efficiency table * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * fixed linegraph points and animation * Removed unnecessary commas * Removed more unnecessary commas * fixed animation when fading away point * Added runtime on summary * Fixed wrong break * Fix to ensure MedianEfficiencyScore method doesn't cause an error * Fixed height of tables * Allow paging on efficiency table after 150 entries * Tidy CSS for Radzen tables Couldn't move it. Correct indentations. Removed excess CSS. * Styling for page-buttons * Summary is now more readable Bold font on data. Centered text for worst scoring managers * Tests (#87) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * Fix to issue #69 * Fixed favicon * Tidy * Style adjustment to tables + overflow fix on summary component * Runtime fix so it works for everyone * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Fix to issue #69 again + tidy * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Display line chart specific data for each manager + 'Track current manager' feature (#94) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Shorten manager names on all tabs * Moved @code under the radzen table * Tidy (#95) * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Shorten manager names on all tabs * Moved @code under the radzen table Co-authored-by: AlexanderSteffensen <asteff20@student.aau.dk> * Removal of unused code & libraries * Custom checkbox for HealthReport.razor + fixed labels * Additional tidy * Program now also works when the conversion is finished (#105) * Program now also works when the conversion is finished * Removed comments * Filtering in manager efficiency score by name works (#106) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * Unit tests and Integrations tests (#107) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * Duplicate memory and cpu fixed (#108) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Changed efficiency score calculation (#109) * Code clean up (#110) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Added CreatePieChart() + ClearPieChart() * Clean up * Removed commented code Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> * Fixed EfficiencyScore and LOGGING queries (#111) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * Fixed inner join query to include the execution id * Fixed the LOGGING query * Pulled changes from upstream * Uncrusted Bisgaard's changes in CalculateEfficiencyScore * minor fixes * final commit * Commented code and uncrusted GetLogList * Removed last prints * Deleted unused database in blazor backend frontend integration test (#113) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Fixes to manager selecting in health report (#112) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Changed class name (#115) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Quick fix to two errors we get in summary due to collection changes while it is being used (#114) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Fixes two out of three(?) "Collection was modified; enumeration operation may not execute" errors * Update README.md * Commenting the frontend (#116) * Changed efficiency score calculation * Commenting the front end * Changed class name in SQLScriptExecuter.cs (#117) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Changed class name in SQLScriptExecuter.cs * Added MANAGER_TRACKING_patcher.sql and ManagerTrackingFixer * Added netcompany database script Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: Andreas <andreas090994@gmail.com> Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: Bisgaard01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <aahlbe20@student.aau.dk> Co-authored-by: Arthur Osnes Gottlieb <49974857+AOsnes@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <74188324+AndreasAhlbeck@users.noreply.github.com> Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> Co-authored-by: Andreas <aalstr20@student.aau.dk>
* Test * typo * removed unused directories * Added managers to the list of queries in streaming * changed time * trying to make backend work with database * changes made * changes made * The program can now query data from the database, but it is still fucked a bit * Update * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * Changed query string for manager_tracking and changed the start time for stream * HUGE CHANGE PART 1 This is a huge commit, and it involves several things (Some of these things are not done yet, and will be in another commit): 1. The DataStreamingSimulation and BlazorApp are now in one solution, which is more structured 2. The (old) TableStreamer.cs and IData.cs are now in a Library Class where they are give new names. This makes them less specific to the BlazorApp. 3. ErrorLog.cs, and ReconciliationLog.cs will be in one class aswell as ErrorData.cs and ReconciliationData.cs. It was just the same code (mostly). (Not finished/ Work in progress) 4. The classes have been given new names. The names refer to what the class do, and not what they are in the problem domain. This makes it easier to see what each class do. 5. Working on making the ConversionDataAssigner.cs query the start times of the managers and initiate them in that way. (Work in progress) * Moved project dir and added mac os file to gitignore * Dont know wth happend, but had to add all files again... * Event demo * Changed back to using manager queue, also deleted ErrorData.cs and ErrorLog.cs, because we are using LogDataHandler.cs and LogData.cs * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Init SQLDatabaseRead.Test * SQLDependencyListener refactor fix * Unit Test * working on starting managers correctly * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs * Takes data from test data, and added queue-chain + popup box (#36) * Removed var variable * placeholders for manager queue * CSS changes Added background to doughnut charts. Added padding to dropdown menu and changed its font size * Changed padding size to rem * Update BlazorApp.csproj * Add max height and stepsize for y Axis * change div so it's correct * Test * typo * Added data on y Aaxis to get data from healthdata test class * Added to take date as C# Datatime at hour minut and seconds * Renamed dataset to somethink that actually makes sens * test data * Trying to make hoverbox in manager queue work Also added some functions to use data * Fiexed conflicts * Fixed hoverbox and added reconciliation type counter * Takes error data from backend test data * Added Recon data from the backend * Added data for memory axis * Fixed upstream and merge conflitcs Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: Racermus01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas <andreas090994@gmail.com> * Events suvscriber * Name change * Fix mistake * Conversion now runs successfully (#37) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * Implemented data to ErrorTable.razor * Fixed naming * implemented so the program now uses MANAGER_TRACKING to query end time (#39) * working on starting managers correctly * conversion is now successfully queried in back-end * changes from code review * added 'select' to query string * runtimeOverall is now queried from the MANAGER_TRACKING table because it now has timestamps * added important text to README and deleted unused code * Things that didn't get fixed with the fetch Done so the branch is up to date with the upstream * Manager hoverbox now follows the mouse also a triangle at the bottom has been added * Updated events implementation * Made Current manager data dynamic * Trying session storage * Update * Styling for Error-table and Reconcilation-table + minor fixes (#40) * Minor changes to scrollbar design Looks like Figma design now. Small issue with scaling of the border when zooming. * Changed border radius on scrollbar * Fixed margin on manager queue in summary * Restructering of overview to make tables CSS-able * Fixed indentation * Basic table CSS + 1 out of 10 table's CSS fixed * Fixing overflow on tables WIP * Resizing of entire table * Errors view styling done * Reconciliation view styling done + Added and edited some test data * Made the error and recon event sort of work, but the table wont update, i had to make ConversionDataAssigner.cs static Deleted tailwind files because we dont use it anymore * Fixed healthdatatest * Clean up * Revert "Made current manager recons/errors update dynamic" * Fixed merge conflicts * fixed merge conflict * The error and reconciliation tables now updates automatically * Overview gets data * Added more methods that show data from lists Also added a method that converts the runtime to an hh:mm:ss format * Update BlazorApp.csproj Removed session storage Package * Update HealthDataHandler.cs Deleted comment * removed files * Update LogDataHandler.cs Deleted comment * changes made * Update SQLDependencyListener.cs internal to private * Preparing for pull request into dev (db things not working rn) * Removed bugfix writelines * Started testing * Fixed Test data * Overview updated * Fixed x-axis overflow on tables + added unused utility function for checking overflow. (#48) * Tidy in Overview.razor Removed empty lines. Fixed typos in comments. Simplified code. * WIP Overflow handling + overflow dropdown button styling Also added a bit of dummy data to simulate overflow, as well as fixing some indentation in _Host.cshtml * WIP * WIP overflow checker Currently works in .razor files, but not in Radzen. * Resize the side-scrollbar * Temp fix for x-axis overflow on tables Also added OverflowChecker.js utility function to detect overflow, but it doesn't work the same in .razor as in Radzen. Unsure how to implement, hence the temp fix. * Update ReconciliationTable.razor * Update .gitignore * Fix manager name overflowing * Overview piechart working 1/2 * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates * Fixede Error in dev and added pageing (#50) * Fixed Test data * Fixed mistake in dev branch and added pageing * deleted comma * Changed the speed it simulates Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> * Created component for efficiency table for the Overview page * Errors queried with execution_id (#51) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Overview piechart working 2/2 + Current errors/recon working * WIP Efficiency table Can show and calculate score, but sorting makes it crash and it only updates when you go into errors or recons. * Fixed ArgumentNllException at Overview.razer reload + removed Console.WriteLine() and comments * Created one radzen component for both error and reconciliation table (#53) * Starting to work with execution id * progressing on querying execution_id * changed the sequence that the tables are streamed * Errors are now queried after the correct execution id, meaning that errors from 2 different managers wont happen. * Created a log table component, that takes in parameters. This means that both Errors.razor and Reconciliations.razor uses the same component * LineChart working 1/2 with data * Table almost complete Table is now sortable. Also shows memory used (sometimes gives value 0, despite there being memory. might have to do with retrieving data from tables). > Not done: - Need to implement coloured background if score = 0 - Need to show type in tables (e.g., CPU 20% and not CPU 20) - Add border to table titles (good luck) * Linegraph update with event * Efficiency table update Shortened the manager name on the frontend. cpu and memory is shown as %. time ran is in hh:mm:ss format. height of table is no longer messed up. Still needs background colour based on efficiency score. * Mem.NumericValue to GB * Change colour on text if efficiency score is 0 * Changed colouring condition * Multiplied efficiency score by 10 * Change class public and bytes to GB * Fixed calculation for avg memory. Now doesn't show 0 memory unless its actually 0 * Into diffrent components.razor.pages * Efficiency table now updates automatically * Removed comments * Fixed pages css files * HealtReport code isolated * Overview.razor code split into Summary.razor and HealtReport.razor * HealtReport clean up done * Summary.razor clean up done * Small fixes * 100 -> 1000 * CSS split * Code moved to bottom + CSS removed * 2K CSS removed * Tidy + small adjustments (#59) * Created utility function for shortening manager name and fixing timestamps * Implemented utility methods + fixed ellipsis not showing + margin adjustment on summary * Remove whitespace * Memory usage in health report fixed now shows percentage memory used. Also made a utility function for memory calculations. * tidy * Logdate updating fix * Fix Bisgaard's crust * Added calculations for total rows read and written and median efficiency score This includes a method that returns a list ordered by efficiency score * Data from MANAGER_TRACKING should never be null now (#76) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * LineChart use stored data * Minor fixes removed bottom border in summary and fixed median when there are no managers * Program works again * Fixed overflow exception for efficiency score calculation * Temp fix for the overflow on efficiency score * Fixed summary layout a bit * EfficencyTable event fixed - Updates at WatchManager(), OverviewTriggerUpdate * Added file for summary efficiency table * LineChart update at new health data * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * DOM tree LineChart * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * Summary efficiency table implemented + minor fixes (#80) * Fixed summary layout a bit * Added file for summary efficiency table * Implemented summary efficiency table + minor changes Changed which managers get to affect median efficiency score so the results don't get skewed. Also made the scrollbar in the manager circle queue appear by default. * Managers with 0% avg cpu and avg memory are now greyed out * Changed efficiencytable so EfficiencyData.cs could be removed + minor fixes * Minor fix * fixed linegraph points and animation * Removed unnecessary commas * Removed more unnecessary commas * fixed animation when fading away point * Added runtime on summary * Fixed wrong break * Fix to ensure MedianEfficiencyScore method doesn't cause an error * Fixed height of tables * Allow paging on efficiency table after 150 entries * Tidy CSS for Radzen tables Couldn't move it. Correct indentations. Removed excess CSS. * Styling for page-buttons * Summary is now more readable Bold font on data. Centered text for worst scoring managers * Tests (#87) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * Fix to issue #69 * Fixed favicon * Tidy * Style adjustment to tables + overflow fix on summary component * Runtime fix so it works for everyone * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Fix to issue #69 again + tidy * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Display line chart specific data for each manager + 'Track current manager' feature (#94) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Shorten manager names on all tabs * Moved @code under the radzen table * Tidy (#95) * implemented so that we dont have to truncate database manually before running program * made configuration as a file * Removed warnings from ManagerStatusHandler.cs * Revert "Removed warnings from ManagerStatusHandler.cs" This reverts commit 99cdfcd. * Revert "Revert "Removed warnings from ManagerStatusHandler.cs"" This reverts commit 5cc7414. * Tidy + renaming * Deleted unused .js function * Shorten manager names on all tabs * Moved @code under the radzen table Co-authored-by: AlexanderSteffensen <asteff20@student.aau.dk> * Removal of unused code & libraries * Custom checkbox for HealthReport.razor + fixed labels * Additional tidy * Program now also works when the conversion is finished (#105) * Program now also works when the conversion is finished * Removed comments * Filtering in manager efficiency score by name works (#106) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * Unit tests and Integrations tests (#107) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * Duplicate memory and cpu fixed (#108) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Changed efficiency score calculation (#109) * Code clean up (#110) * LineChart is manager specific - BUG: manager 0, Onclick crash * LineChart manager split + follow current manager checkbox * Follow current manager checkbox css added (TODO: fix) * Fixed data bind + OnCheckboxClick() * Track current manager remberes linechart dropdown selection + Moved line chart to method * Clean up * Null check * Moved CpuDataList + MemDataList from ConversionDataAssigner to ManagerStatusHandler * Rename CurrentManager * Fixed errors * Added CreatePieChart() + ClearPieChart() * Clean up * Removed commented code Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> * Fixed EfficiencyScore and LOGGING queries (#111) * WIP database connection This is just a first try connecting to a MS SQL database * Improved prototyping of loading data * Moved db connection string to setup.txt and created ReadSetupFile method to read it. * SqlDependency now works on the state database dumps. TODO: ensure SqlDependency works on multiple tables. * Changed the printing functionality a bit by moving it to a separate class * commit before leaving * SqlDependencies now work on multiple tables at once. TODO: refactor the code to be prettier and reusable. * TableStreamer.cs is now generic and works for all classes that implement the IData interface and have a default constructor. * TableStreamer.cs works but has to be changed to reflect the class diagram * Added classes to contain data from selected tables. TableStreamer.cs is not generic anymore POG. * Added classes to contain data from tables. Added Manager.cs to contain all data for each manager. * Manager.cs can now listen for updates. TODO: enqueue and dequeue managers and ensure everything works. * Finished modelling Manager.cs class and everything below in the class diagram * Added Engine.cs to run the manager queue. TODO: add methods to administrate the managers. * Engine.cs and Manager.cs are now fully functional. The backend should be working now. TODO: write unit tests for the backend * Removed garbo class * Implemented feedback from pull request * Cleaned up branch to match upstream after pull * Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING * Revert "Created a program to fix STARTTIME and ENDTIME in MANAGER_TRACKING" This reverts commit 3fd3435. * Commit to pull upstream * AssignManagerTrackingData now retries the query up to 5 times if the query is empty previously. Also, cleaned up the query by combining two MANAGER_TRACKING queries. * Delete Datastreaming/Datastreaming directory * Fixed inner join query to include the execution id * Fixed the LOGGING query * Pulled changes from upstream * Uncrusted Bisgaard's changes in CalculateEfficiencyScore * minor fixes * final commit * Commented code and uncrusted GetLogList * Removed last prints * Deleted unused database in blazor backend frontend integration test (#113) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Fixes to manager selecting in health report (#112) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Changed class name (#115) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Quick fix to two errors we get in summary due to collection changes while it is being used (#114) * Program now also works when the conversion is finished * Removed comments * Fix to issue #104 * whoops * No more duplicate data entries Fix to issue #100 * Fix * Health report dropdown menu now shows the correct manager name and id * Toggle current manager tracking works properly now * Fixes two out of three(?) "Collection was modified; enumeration operation may not execute" errors * Update README.md * Commenting the frontend (#116) * Changed efficiency score calculation * Commenting the front end * Changed class name in SQLScriptExecuter.cs (#117) * Implemented 2 unit tests for log tables * implemented unit test for sorting tabs in logtable component * changed function name * Added integration test for database streamer, and unit test for ConfigReader.cs. Refactored the DatabaseStreamer so that the integration test could be easier implemented * Changed file names and created file for blazor backend test * wrote blazor backend test, but database needs to be created separately * deleted unused dir and renamed test project * implemented so that we dont have to truncate database manually before running program * made configuration as a file * integration tests now works with mock up databases that are made during the tests * implemented integration test for sqldependencylistener and blazor-backend-frontend * added comments and deleted unused code in tests * added more comments * changed comment placement * deleted unused database creation * Changed class name * Changed class name in SQLScriptExecuter.cs * Added MANAGER_TRACKING_patcher.sql and ManagerTrackingFixer * Added netcompany database script * added sql file and edited readme * added lines in sql file .. Co-authored-by: danielalexlarsen <danielalexlarsen@gmail.com> Co-authored-by: Andreas <andreas090994@gmail.com> Co-authored-by: D <52609809+danielalexlarsen@users.noreply.github.com> Co-authored-by: Bisgaard01 <73647518+Bisgaard01@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <aahlbe20@student.aau.dk> Co-authored-by: Arthur Osnes Gottlieb <49974857+AOsnes@users.noreply.github.com> Co-authored-by: Andreas ahlbeck <74188324+AndreasAhlbeck@users.noreply.github.com> Co-authored-by: Alexander Steffensen <74182126+AlexanderSteffensen@users.noreply.github.com> Co-authored-by: Mike Jensen <43805784+Shimitan@users.noreply.github.com> Co-authored-by: Andreas <aalstr20@student.aau.dk>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.