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

Refactor data access pattern #4591

Closed
wants to merge 93 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
826f47f
feat: borrowed the behaviour pattern from october/extension package t…
webong Feb 28, 2023
4342fc8
test: ability for classes to have behaviours
webong Feb 28, 2023
999af36
chore: move repository interfaces from contracts dir back to the core…
webong Feb 28, 2023
16d6bee
chore: modify refrences and implementations of the repositiory interf…
webong Feb 28, 2023
9f8444e
chore: fix lint
webong Feb 28, 2023
05c7482
Merge branch 'feature/extensions' into chore/data-access-pattern
webong Feb 28, 2023
4609f01
chore: update extension readme
webong Feb 28, 2023
a0fa91f
Merge branch 'feature/extensions' into chore/data-access-pattern
webong Feb 28, 2023
11126c8
chore: some modifications to the extension lib
webong Mar 1, 2023
69dd2c5
amend
webong Mar 1, 2023
a3d7686
Merge branch 'feature/extensions' into chore/data-access-pattern
webong Mar 3, 2023
fc87dfe
chore: some minor modifications
webong Mar 8, 2023
b3f8142
Merge branch 'feature/extensions' into chore/data-access-pattern
webong Mar 8, 2023
195aa65
chore: move interface classes to the repository namespace and update …
webong Mar 10, 2023
2cb6cc4
chore: fix issue with namespace/class not found
webong Mar 10, 2023
1c15473
Merge pull request #4512 from ushahidi/develop
webong Mar 20, 2023
aeb4b4d
Merge branch 'project-mzima' of github.com:ushahidi/platform into pro…
webong Mar 21, 2023
ee0bebe
chore: move ohanzee based repositories to the core domain
webong Mar 23, 2023
487564e
chore: some modifications to classes
webong Mar 28, 2023
df96329
chore: moved repositories from v3 to core and refactored dependants t…
webong Mar 28, 2023
e424e92
Merge branch 'project-mzima' of github.com:ushahidi/platform into pro…
webong Mar 28, 2023
d9b378e
Merge branch 'project-mzima' of github.com:ushahidi/platform into pro…
webong Mar 30, 2023
cd0cc1c
chore: remove EloquentRepository from Ohanzee Bounded Context
webong Mar 30, 2023
c44bcf0
chore: move contracts back to core domain
webong Mar 30, 2023
0b02f18
chore: rename Acl interface to AccessControl
webong Mar 30, 2023
bb67c0b
Merge branch 'project-mzima' into chore/data-access-pattern
webong Apr 1, 2023
c3bcc85
chore: update gitignore
webong Apr 1, 2023
422b29e
Merge branch 'project-mzima' into chore/data-access-pattern
webong Apr 19, 2023
9631834
fix: lint issues
webong Apr 19, 2023
e662c84
test: fix unit tests with extension package
webong Apr 19, 2023
c3cb445
chore: resolve issues breaking behat tests
webong Apr 27, 2023
27a42ea
chore: resolve lint errors
webong Apr 27, 2023
cb84704
Merge branch 'project-mzima' into chore/data-access-pattern
webong May 1, 2023
29b46c1
chore: syntax modifications
webong May 8, 2023
d7e4555
feat:(wip) Eloquent Model & Repository implementation
webong May 8, 2023
f7b071d
chore: changes to eloquent package
webong May 8, 2023
100fdac
Merge remote-tracking branch 'origin/project-mzima' into chore/data-a…
webong Jun 8, 2023
4156e3f
chore: resolve language error with Set Ohanzee Entity class and remov…
webong Jun 8, 2023
2b84ac3
Merge remote-tracking branch 'origin/project-mzima' into refactor/dat…
webong Jul 5, 2023
701dab4
chore: resolve entities usage via ohanzee and eloquent
webong Jul 5, 2023
bc8bd83
chore: resolve more failing tests due to wrong implementations
webong Jul 5, 2023
ef0daa2
chore: fix NotificationResource
webong Jul 5, 2023
bacd4f3
chore: modification to records management
webong Jul 5, 2023
2a7f7bc
chore: modification to records management and access management
webong Jul 5, 2023
253e2cb
chore: modify PostAuthorizer
webong Jul 5, 2023
d6b2079
chore: resolve report management and access management bugs
webong Jul 5, 2023
8e7d9ca
chore: resolve report management and access management bugs
webong Jul 6, 2023
05620c4
chore: updated relevant entities
webong Jul 6, 2023
0629904
Merge pull request #4592 from ushahidi/project-mzima
Mh-Asmi Jul 6, 2023
a8e9404
chore: upload image to github packages
tuxpiper Jul 9, 2023
7313ec3
chore: fix wrong command result in util script
tuxpiper Jul 9, 2023
c728c39
chore: improvements to resolve client url in single or multi site mode
Jul 10, 2023
a5f8a62
chore: Dockerfile add default service startup command
tuxpiper Jul 10, 2023
611e1f5
add post color
Mh-Asmi Jul 10, 2023
d0659e4
add count of posts in set
Mh-Asmi Jul 10, 2023
4844fb1
fix message foe integration tests
Mh-Asmi Jun 19, 2023
c365cbf
layer tests
Mh-Asmi Jun 19, 2023
a63297a
add post details
Mh-Asmi Jun 21, 2023
e49af0b
Update MessageController.php
Mh-Asmi Jun 21, 2023
8d3009f
chore: upload image to github packages
tuxpiper Jul 9, 2023
235c134
chore: fix wrong command result in util script
tuxpiper Jul 9, 2023
166981a
chore: improvements to resolve client url in single or multi site mode
Jul 10, 2023
3d8077f
chore: Dockerfile add default service startup command
tuxpiper Jul 10, 2023
40e6233
add post color
Mh-Asmi Jul 10, 2023
85bc51b
add count of posts in set
Mh-Asmi Jul 10, 2023
dec8b6f
add config update
Mh-Asmi Jul 11, 2023
d400e28
fix config permissions
Mh-Asmi Jul 12, 2023
c0e2930
fix parent parameter in list messages API
Mh-Asmi Jul 12, 2023
0ce9493
config by key
Mh-Asmi Jul 13, 2023
d7282a2
styles for forgot password email
miraxes Jul 12, 2023
de8895a
simplify reset code implemented
Jul 17, 2023
9c2adc8
style: fix lint issues
Jul 17, 2023
a376eb0
test: fix failing test
Jul 17, 2023
1b3a618
test: fix mailer test
Jul 17, 2023
fc26fb3
test: fix mailer test
Jul 17, 2023
71670b2
chore: made some modifications and fixed mailer tests
Jul 17, 2023
7c8d703
test: fix mailer test
Jul 17, 2023
a11efbb
test: fix mailer test
Jul 17, 2023
0d954cc
test: fix mailer test
Jul 18, 2023
2b60375
styles for forgot password email
miraxes Jul 12, 2023
58829f1
simplify reset code implemented
Jul 17, 2023
637c89c
chore: update forgot-password email template
Jul 18, 2023
3ccb47d
chore: fix forgot-password template
Jul 18, 2023
6f80b3c
fix charts case when compare role permissions
Mh-Asmi Jul 19, 2023
208bee4
user fix q filter to search in email
Mh-Asmi Jul 19, 2023
cfba3be
fix scop for collection posts
Mh-Asmi Jul 19, 2023
7ad1dba
v5 confid and v5 export
Mh-Asmi Jul 20, 2023
8c8fbe3
chore: update forgot password template
Jul 20, 2023
1db5d0d
Merge remote-tracking branch 'origin/main' into merge/main-to-develop
Jul 20, 2023
4b8bf69
Merge pull request #4611 from ushahidi/merge/main-to-develop
webong Jul 20, 2023
543debe
Merge pull request #4607 from ushahidi/develop
tuxpiper Jul 20, 2023
bb42eef
Merge branch 'develop' into refactor/data-access-pattern
webong Jul 20, 2023
ea54eca
fix: issues with export job and config in v5 module
webong Jul 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: moved repositories from v3 to core and refactored dependants t…
…o use the new namespace
  • Loading branch information
webong committed Mar 30, 2023
commit df963292ddaaaa0cd1a664d1aec08a55dd91f304
28 changes: 0 additions & 28 deletions src/Ushahidi/Contracts/Permission.php

This file was deleted.

12 changes: 2 additions & 10 deletions src/Ushahidi/Contracts/Repository/CreateRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,7 @@

namespace Ushahidi\Contracts\Repository;

use Ushahidi\Contracts\Entity;
use Ushahidi\Contracts\Repository\EntityGet;

interface CreateRepository extends EntityGet
interface CreateRepository extends EntityGet, EntityCreate
{
/**
* Creates a new record and returns the created id.
* @param array|\Ushahidi\Contracts\Entity $entity
* @return mixed
*/
public function create(Entity $entity);

}
1 change: 1 addition & 0 deletions src/Ushahidi/Contracts/Repository/EntityCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface EntityCreate
{
/**
* Creates a new record and returns the created id.
* @param array|\Ushahidi\Contracts\Entity $entity
* @return mixed
*/
public function create(Entity $entity);
Expand Down
3 changes: 0 additions & 3 deletions src/Ushahidi/Contracts/Repository/ReadRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@

namespace Ushahidi\Contracts\Repository;

use Ushahidi\Contracts\Repository\EntityExists;
use Ushahidi\Contracts\Repository\EntityGet;

interface ReadRepository extends EntityGet, EntityExists
{
}
21 changes: 10 additions & 11 deletions src/Ushahidi/Contracts/Repository/SearchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,34 @@

use Ushahidi\Contracts\Search;

interface SearchRepository
interface SearchRepository extends EntityGet
{
/**
* Converts an array of entity data into an object.
* @param array $data
* @return \Ushahidi\Contracts\Entity
*/
public function getEntity(array $data = null);

/**
* Get fields that can be used for searches.
*
* @return array
*/
public function getSearchFields();

/**
* @param \Ushahidi\Contracts\Search $search
* Set the search parameters.
*
* @param \Ushahidi\Contracts\Search $search
* @return $this
*/
public function setSearchParams(Search $search);

/**
* @return [Ushahidi\Core\Entity, ...]
* Get the results for the last search.
*
* @return \Ushahidi\Contracts\Entity[]
*/
public function getSearchResults();

/**
* @return Integer
* Get the total number of results for the last search.
*
* @return integer
*/
public function getSearchTotal();
}

This file was deleted.

23 changes: 0 additions & 23 deletions src/Ushahidi/Contracts/Repository/Usecase/DeleteTagRepository.php

This file was deleted.

20 changes: 0 additions & 20 deletions src/Ushahidi/Contracts/Repository/Usecase/ReadTagRepository.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Ushahidi/Contracts/Repository/Usecase/SetPostRepository.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Ushahidi/Contracts/Repository/Usecase/StatsPostRepository.php

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions src/Ushahidi/Contracts/Repository/Usecase/UpdatePostRepository.php

This file was deleted.

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions src/Ushahidi/Contracts/Repository/Usecase/UpdateTagRepository.php

This file was deleted.

Loading