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

toolCountChanges #188

Merged
merged 1 commit into from
May 18, 2024
Merged

toolCountChanges #188

merged 1 commit into from
May 18, 2024

Conversation

DaveLuhman
Copy link
Owner

@DaveLuhman DaveLuhman commented May 18, 2024

Subject: Enhance Service Assignment with Tool Count

Added 'toolCount' field to ServiceAssignment model for better resource tracking, enforcing a minimum value of 0 to ensure data integrity. Updated the enum values within the ServiceAssignment Schema to more accurately reflect the types of jobsites, changing 'Contract Job' and 'Service Job' to 'Contract Jobsite' and 'Service Jobsite,' respectively. This change clarifies the nature of the assignments in the system. Service assignment fetch operation is now more performance-efficient by using .lean() with the query to speed up data retrieval, beneficial for large datasets. Furthermore, the 'toolCount' field is now displayed in the service assignments settings view, with a visual emphasis on counts greater than zero, improving the user interface for site administrators by allowing quick identification of resource allocations per assignment.

This integration offers a detailed insight into the resource distribution across different service assignments, facilitating better planning and resource management.

Resolves: add toolCount to ServiceAssignment model and settings page. #187


This change is Reviewable

Subject: Enhance Service Assignment with Tool Count

Added 'toolCount' field to ServiceAssignment model for better resource tracking, enforcing a minimum value of 0 to ensure data integrity. Updated the enum values within the ServiceAssignment Schema to more accurately reflect the types of jobsites, changing 'Contract Job' and 'Service Job' to 'Contract Jobsite' and 'Service Jobsite,' respectively. This change clarifies the nature of the assignments in the system. Service assignment fetch operation is now more performance-efficient by using `.lean()` with the query to speed up data retrieval, beneficial for large datasets. Furthermore, the 'toolCount' field is now displayed in the service assignments settings view, with a visual emphasis on counts greater than zero, improving the user interface for site administrators by allowing quick identification of resource allocations per assignment.

This integration offers a detailed insight into the resource distribution across different service assignments, facilitating better planning and resource management.

Resolves:  add toolCount to ServiceAssignment model and settings page. #187
@DaveLuhman DaveLuhman linked an issue May 18, 2024 that may be closed by this pull request
Copy link
Contributor

deepsource-io bot commented May 18, 2024

Here's the code health analysis summary for commits 52ff72b..56b48dc. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 1 occurence introduced
View Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@DaveLuhman DaveLuhman merged commit e1da396 into master May 18, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add toolCount to ServiceAssignment model and settings page.
1 participant