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

Biobank Module for LORIS #258

Closed

Conversation

HenriRabalais
Copy link
Collaborator

@HenriRabalais HenriRabalais commented Jul 23, 2024

php/endpoint (concrete classes) → routes and breaks down the request and converts it into queryparam object to be passed down the chain.

php/controller (generic class with dependencies) → doesn’t do much for now but I can see potential uses in future, mostly passing along the request for now. For post or put though this is where the dtos get converted into entity models

php/service (concrete classes) → knows how to do everything that needs to be done for a specific type of model , including generic things like getting all instances, getting by id, getting by label, saving, deleting — but also can be extended to include things that have more specific needs.

php/provisioner (generic class with dependencies) → takes in a schema and queryparams and builds whatever query is necessary to accomplish the job using a querybuilder

php/data/schemas (concrete classes, ideally static) → is the only place where you will find any information from the database tables. Each table that is not a rel table has its own schema class that defines it.

php/model (concrete classes) → these are what we were previously referring to as a dto — after further investigation I think they are more appropriately named models since they hold a bit of internal logic, whereas a dto would basically be what gets sent to and from the front end — we can discuss.

php/factory (generic class with dependencies) → takes in a model class name and is able to instantiate models with passed dtos

php/validator (concrete classes) → loaded into the service layer to assist with validation before being passed to the dao

php/data/query → the query family of classes includes the querybuilder , queryparams and a suite of classes and enums for contructing queries. This is the only class that containers sql language strings.

ridz1208 and others added 17 commits August 9, 2023 10:31
properly removing CenterID from Pools

finalizing changes

updates

added site filtering to shipments

updating entities to include user-readable values

adding specimen barcodes to pools

attempts at resolving front-end container display

changed filter type for containers

implementing user site match permissions on entities

properly removing CenterID from Pools

finalizing changes

updating entities to include user-readable values

adding specimen barcodes to pools

attempts at resolving front-end container display
* added function (aces#247)

Co-authored-by: Rida Abou-Haidar <[email protected]>

* fixed site inheritance for batch preparation form

* fixes made based on testing

---------

Co-authored-by: Rida Abou-Haidar <[email protected]>
@@ -0,0 +1,137 @@
<?php declare(strict_types=1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IGNORE THIS FILE → refer to factory.class.inc instead

ServerRequestInterface $request
): ResponseInterface
{
$this->getPermission(Permission::GET);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkPermission

@HenriRabalais
Copy link
Collaborator Author

closed and opened V2

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.

2 participants