#752-implement-automatically-cards-update #827
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!827
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#752-implement-automatically-cards-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementing automatically update functionality for some views and adding associated tests
Environment
This was developed on an Arch-based Linux distribution and tested using Jest.
What has been done?
Config
Created the file frontend/src/configs/pollFrequencyConfig.js as the configuration file for each view's "refresh" interval.
The "refresh" time is the interval between API calls a component makes to self-update its content.
Views
In the following views:
The following features were added:
Tests
This section represents the bulk of the work done. The test structure is the same in all implemented tests.
Each test file contains two groups of tests. The first group covers general state testing, serving as a simple foundation for future developers to modify, expand, or remove as needed.
The second group consists of basic tests for the polling (refresh) functionality.
Because the test files follow a standardized pattern, they are practically identical in both structure and content.
General state tests
This group follows the same pattern across all test files:
Polling tests
Similarly, this group follows a standardized pattern:
Currently, all tests would be considered the "happy path," meaning they only verify the best-case scenario and do not test for bad inputs/outputs. Adding "bad path" (edge case) tests would be highly advisable, but since it falls outside the scope of this PR and issue, it is left for future development.
Issue:
General: #752
The times each should refresh: #742
Inspiration from #702
Review on #752
Whats done
Tested on Windows using Firefox
Inspected following files
What needs to be done
Conclusion
Can you fix the problems c24elipe
I think it is fixed after the review requirements now
Re-review on #752
Previous issues checked
Conclusion