Skip to content

feat/BILL-CPC-905_Implement_Pagination_System_For_BillHistory_Page #2077

feat/BILL-CPC-905_Implement_Pagination_System_For_BillHistory_Page

feat/BILL-CPC-905_Implement_Pagination_System_For_BillHistory_Page #2077

Triggered via pull request October 24, 2023 15:46
Status Success
Total duration 59s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

339 warnings and 81 notices
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-go@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Possibly blocking call in non-blocking context: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/RoleFilter.java#L58
Possibly blocking call in non-blocking context could lead to thread starvation
Possibly blocking call in non-blocking context: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/IsUserFilter.java#L56
Possibly blocking call in non-blocking context could lead to thread starvation
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L77
'addAll()' call can be replaced with parametrized constructor call
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L73
'addAll()' call can be replaced with parametrized constructor call
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L71
'addAll()' call can be replaced with parametrized constructor call
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L79
'addAll()' call can be replaced with parametrized constructor call
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L75
'addAll()' call can be replaced with parametrized constructor call
Redundant 'Collection.addAll()' call: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L69
'addAll()' call can be replaced with parametrized constructor call
Nullability and data flow problems: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/IsUserFilter.java#L49
Unboxing of `exchange.getAttribute("whitelisted")` may produce `NullPointerException`
Nullability and data flow problems: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/RoleFilter.java#L49
Unboxing of `exchange.getAttribute("whitelisted")` may produce `NullPointerException`
Integer multiplication or shift implicitly cast to 'long': billing-service/src/main/java/com/petclinic/billing/businesslayer/BillServiceImpl.java#L66
pageable.getPageNumber() \* pageable.getPageSize(): integer multiplication implicitly cast to long
Integer multiplication or shift implicitly cast to 'long': customers-service-reactive/src/main/java/com/petclinic/customersservice/business/OwnerServiceImpl.java#L104
pageable.getPageNumber() \* pageable.getPageSize(): integer multiplication implicitly cast to long
Integer multiplication or shift implicitly cast to 'long': customers-service-reactive/src/main/java/com/petclinic/customersservice/business/OwnerServiceImpl.java#L110
pageable.getPageNumber() \* pageable.getPageSize(): integer multiplication implicitly cast to long
Integer multiplication or shift implicitly cast to 'long': billing-service/src/main/java/com/petclinic/billing/businesslayer/BillServiceImpl.java#L72
pageable.getPageNumber() \* pageable.getPageSize(): integer multiplication implicitly cast to long
@NotNull/@Nullable problems: customers-service-reactive/src/main/java/com/petclinic/customersservice/data/OwnerRepo.java#L13
Not annotated method overrides method annotated with @NonNullApi
Redundant type cast: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/IsUserFilter.java#L82
Casting `exchange.getAttribute(...)` to `TokenResponseDTO` is redundant
Redundant type cast: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/RoleFilter.java#L86
Casting `exchange.getAttribute(...)` to `TokenResponseDTO` is redundant
'size() == 0' can be replaced with 'isEmpty()': auth-service/src/main/java/com/petclinic/authservice/businesslayer/UserServiceImpl.java#L127
`gatewaySubdomain.length() > 0` can be replaced with '!gatewaySubdomain.isEmpty()'
Invalid YAML configuration: auth-service/src/main/resources/application.yml#L18
Cannot resolve configuration property 'default-admin.username'
Invalid YAML configuration: inventory-service/src/main/resources/application.yml#L17
Cannot resolve configuration property 'de.flapdoodle.mongodb.embedded.version'
Invalid YAML configuration: auth-service/src/main/resources/application.yml#L19
Cannot resolve configuration property 'default-admin.password'
Invalid YAML configuration: billing-service/src/main/resources/application.yml#L71
Cannot resolve configuration property 'server.error.org.hibernate.type.descriptor.sql.BasicBinder'
Invalid YAML configuration: auth-service/src/main/resources/application.yml#L25
Cannot resolve configuration property 'gateway.subdomain'
Invalid YAML configuration: visits-service-new/src/main/resources/application.yml#L32
Cannot resolve configuration property 'de.flapdoodle.mongodb.embedded.version'
Invalid YAML configuration: billing-service/src/main/resources/application.yml#L70
Cannot resolve configuration property 'server.error.org.hibernate.SQL'
Invalid YAML configuration: customers-service-reactive/src/main/resources/application.yml#L6
Cannot resolve configuration property 'server.logging.level.root'
Invalid YAML configuration: customers-service-reactive/src/main/resources/application.yml#L7
Cannot resolve configuration property 'server.logging.level.com.petclinic'
Call to 'printStackTrace()': vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L496
Call to `printStackTrace()` should probably be replaced with more robust logging
Call to 'printStackTrace()': vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L467
Call to `printStackTrace()` should probably be replaced with more robust logging
Call to 'printStackTrace()': api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Rethrower.java#L36
Call to `printStackTrace()` should probably be replaced with more robust logging
Unchecked warning: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L82
Unchecked assignment: 'java.util.List\[\]' to 'java.util.List\[\]'
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/PhotoServiceImpl.java#L5
Unused import `import com.petclinic.vet.dataaccesslayer.badges.BadgeTitle;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Auth/UserPasswordAndTokenRequestModel.java#L9
Unused import `import org.springframework.validation.annotation.Validated;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Vets/BadgeResponseDTO.java#L7
Unused import `import org.springframework.core.io.ClassPathResource;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/presentationlayer/PetTypeController.java#L5
Unused import `import com.petclinic.customersservice.util.EntityDTOUtil;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/education/EducationServiceImpl.java#L6
Unused import `import com.petclinic.vet.exceptions.InvalidInputException;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/PetService.java#L4
Unused import `import com.petclinic.customersservice.presentationlayer.PetRequestDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/util/EntityDtoUtil.java#L20
Unused import `import com.petclinic.vet.dataaccesslayer.Specialty;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/PhotoServiceImpl.java#L6
Unused import `import com.petclinic.vet.exceptions.InvalidInputException;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/data/PetRepo.java#L3
Unused import `import com.petclinic.customersservice.presentationlayer.PetResponseDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/badges/BadgeRequestDTO.java#L3
Unused import `import com.petclinic.vet.dataaccesslayer.badges.BadgeTitle;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/badges/BadgeResponseDTO.java#L8
Unused import `import org.springframework.core.io.ClassPathResource;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/Vet.java#L14
Unused import `import com.fasterxml.jackson.core.JsonProcessingException;`
Unused import: vet-service/src/main/java/com/petclinic/vet/util/EntityDtoUtil.java#L15
Unused import `import com.fasterxml.jackson.databind.SerializationFeature;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/Vet.java#L16
Unused import `import com.fasterxml.jackson.databind.ObjectMapper;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/InventoryServiceClient.java#L15
Unused import `import org.springframework.http.HttpStatus;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L4
Unused import `import com.fasterxml.jackson.core.type.TypeReference;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Vets/PhotoResponseDTO.java#L4
Unused import `import org.springframework.core.io.Resource;`
Unused import: auth-service/src/main/java/com/petclinic/authservice/Util/Configuration/Security/SecurityConfig.java#L16
Unused import `import org.springframework.security.core.userdetails.UserDetails;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/config/GlobalExceptionHandler.java#L7
Unused import `import org.springframework.http.server.reactive.ServerHttpRequest;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/Vet.java#L15
Unused import `import com.fasterxml.jackson.core.type.TypeReference;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/InventoryServiceClient.java#L4
Unused import `import com.petclinic.bffapigateway.dtos.Inventory.InventoryResponseDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/exceptions/GlobalControllerExceptionHandler.java#L20
Unused import `import org.springframework.web.context.request.WebRequest;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/CustomersServiceClient.java#L14
Unused import `import org.springframework.web.bind.annotation.RequestParam;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/badges/BadgeRequestDTO.java#L8
Unused import `import org.springframework.core.io.ClassPathResource;`
Unused import: auth-service/src/main/java/com/petclinic/authservice/presentationlayer/User/TokenResponseDTO.java#L3
Unused import `import com.petclinic.authservice.datalayer.roles.Role;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/badges/Badge.java#L4
Unused import `import org.springframework.core.io.ClassPathResource;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/PhotoServiceImpl.java#L17
Unused import `import reactor.core.publisher.Flux;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/PetTypeService.java#L4
Unused import `import com.petclinic.customersservice.presentationlayer.OwnerRequestDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/PhotoServiceImpl.java#L16
Unused import `import org.springframework.util.StreamUtils;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/InventoryServiceClient.java#L6
Unused import `import com.petclinic.bffapigateway.dtos.Inventory.ProductRequestDTO;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/presentationlayer/PetTypeRequestDTO.java#L4
Unused import `import com.fasterxml.jackson.annotation.JsonIgnoreProperties;`
Unused import: vet-service/src/main/java/com/petclinic/vet/presentationlayer/VetController.java#L26
Unused import `import org.springframework.core.io.ByteArrayResource;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Vets/PhotoDetails.java#L3
Unused import `import com.fasterxml.jackson.annotation.JsonIgnore;`
Unused import: vet-service/src/main/java/com/petclinic/vet/util/EntityDtoUtil.java#L14
Unused import `import com.fasterxml.jackson.databind.ObjectMapper;`
Unused import: vet-service/src/main/java/com/petclinic/vet/presentationlayer/PhotoResponseDTO.java#L5
Unused import `import org.springframework.core.io.Resource;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/VetServiceImpl.java#L35
Unused import `import javax.sql.DataSource;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Rethrower.java#L10
Unused import `import java.security.Provider;`
Unused import: auth-service/src/main/java/com/petclinic/authservice/Util/Configuration/Security/SecurityConfig.java#L20
Unused import `import org.springframework.security.provisioning.InMemoryUserDetailsManager;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/VetsServiceClient.java#L14
Unused import `import org.springframework.util.LinkedMultiValueMap;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/InventoryServiceClient.java#L7
Unused import `import com.petclinic.bffapigateway.dtos.Inventory.ProductResponseDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/VetAverageRatingDTO.java#L3
Unused import `import com.petclinic.vet.presentationlayer.VetRequestDTO;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/PetTypeService.java#L5
Unused import `import com.petclinic.customersservice.presentationlayer.OwnerResponseDTO;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/ratings/RatingServiceImpl.java#L12
Unused import `import com.petclinic.vet.presentationlayer.VetRequestDTO;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/config/GlobalExceptionHandler.java#L20
Unused import `import static org.springframework.http.HttpStatus.NOT_FOUND;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Rethrower.java#L13
Unused import `import java.util.function.Supplier;`
Unused import: auth-service/src/main/java/com/petclinic/authservice/security/JwtTokenUtil.java#L10
Unused import `import org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerPropertie...`
Unused import: billing-service/src/main/java/com/petclinic/billing/businesslayer/BillServiceImpl.java#L10
Unused import `import org.springframework.data.domain.PageRequest;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/BillServiceClient.java#L5
Unused import `import com.petclinic.bffapigateway.dtos.Bills.BillStatus;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/DataSetupService.java#L18
Unused import `import org.postgresql.ds.PGSimpleDataSource;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Auth/Register.java#L5
Unused import `import com.petclinic.bffapigateway.dtos.CustomerDTOs.OwnerResponseDTO;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/VetsServiceClient.java#L4
Unused import `import com.petclinic.bffapigateway.exceptions.ExistingRatingNotFoundException;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Annotations/SecuredEndpoint.java#L5
Unused import `import org.springframework.web.bind.annotation.*;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/VetServiceImpl.java#L24
Unused import `import com.petclinic.vet.util.DatabaseInitializer;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/VetsServiceClient.java#L15
Unused import `import org.springframework.util.MultiValueMap;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/VetServiceImpl.java#L28
Unused import `import org.springframework.core.io.ByteArrayResource;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/PhotoRepository.java#L4
Unused import `import org.springframework.stereotype.Repository;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/InventoryServiceClient.java#L5
Unused import `import com.petclinic.bffapigateway.dtos.Inventory.InventoryRequestDTO;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/BillServiceClient.java#L6
Unused import `import com.petclinic.bffapigateway.dtos.CustomerDTOs.OwnerResponseDTO;`
Unused import: auth-service/src/main/java/com/petclinic/authservice/Util/Configuration/Security/SecurityConfig.java#L15
Unused import `import org.springframework.security.core.userdetails.User;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/dtos/Vets/BadgeResponseDTO.java#L8
Unused import `import org.springframework.core.io.Resource;`
Unused import: inventory-service/src/main/java/com/petclinic/inventoryservice/presentationlayer/InventoryRequestDTO.java#L3
Unused import `import com.petclinic.inventoryservice.datalayer.Inventory.InventoryType;`
Unused import: inventory-service/src/main/java/com/petclinic/inventoryservice/presentationlayer/InventoryResponseDTO.java#L3
Unused import `import com.petclinic.inventoryservice.datalayer.Inventory.InventoryType;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/OwnerService.java#L6
Unused import `import org.springframework.web.bind.annotation.RequestParam;`
Unused import: vet-service/src/main/java/com/petclinic/vet/util/EntityDtoUtil.java#L16
Unused import `import com.petclinic.vet.dataaccesslayer.Photo;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/domainclientlayer/BillServiceClient.java#L9
Unused import `import org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties;`
Unused import: billing-service/src/main/java/com/petclinic/billing/datalayer/BillRepository.java#L4
Unused import `import org.springframework.data.domain.PageRequest;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/utils/Security/Filters/IsUserFilter.java#L10
Unused import `import com.petclinic.bffapigateway.utils.Security.Annotations.SecuredEndpoint;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/PetTypeServiceImpl.java#L6
Unused import `import com.petclinic.customersservice.presentationlayer.OwnerResponseDTO;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/presentationlayer/BFFApiGatewayController.java#L8
Unused import `import com.petclinic.bffapigateway.dtos.Bills.BillStatus;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/badges/BadgeResponseDTO.java#L9
Unused import `import org.springframework.core.io.Resource;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/presentationlayer/PetTypeController.java#L4
Unused import `import com.petclinic.customersservice.data.PetType;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/business/PetServiceImpl.java#L5
Unused import `import com.petclinic.customersservice.presentationlayer.PetRequestDTO;`
Unused import: api-gateway/src/main/java/com/petclinic/bffapigateway/config/GlobalExceptionHandler.java#L9
Unused import `import org.springframework.web.bind.MethodArgumentNotValidException;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/PhotoServiceImpl.java#L13
Unused import `import org.springframework.core.io.ClassPathResource;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/Vet.java#L19
Unused import `import org.springframework.data.mongodb.core.mapping.DBRef;`
Unused import: vet-service/src/main/java/com/petclinic/vet/dataaccesslayer/Vet.java#L21
Unused import `import java.io.IOException;`
Unused import: vet-service/src/main/java/com/petclinic/vet/servicelayer/badges/BadgeServiceImpl.java#L10
Unused import `import org.springframework.core.io.ByteArrayResource;`
Unused import: customers-service-reactive/src/main/java/com/petclinic/customersservice/presentationlayer/OwnerController.java#L7
Unused import `import org.springframework.beans.factory.annotation.Autowired;`