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

chore: TX management with entity manager #37646

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a987818
chore: Working state
abhvsn Nov 20, 2024
ced4062
wip
abhvsn Nov 20, 2024
2092571
wip
abhvsn Nov 20, 2024
d1f4a42
wip
abhvsn Nov 20, 2024
fb7f072
wip
abhvsn Nov 20, 2024
21e2297
wip
abhvsn Nov 21, 2024
661442e
wip
abhvsn Nov 21, 2024
bbe83e4
wip
abhvsn Nov 22, 2024
76059a8
chore: Build is passing now
abhvsn Nov 22, 2024
71da8a2
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Nov 22, 2024
1b8b3a0
chore: Add CRUDRepository extension
abhvsn Nov 22, 2024
8ae5fa1
now we are talking 🎉, we have a testcase passing with custom transaction
abhvsn Nov 26, 2024
ddeb58e
Multi repo test
abhvsn Nov 26, 2024
b41542c
chore: Fix tests with save op
abhvsn Nov 27, 2024
66de4c5
chore: Fix delete repo method
abhvsn Nov 27, 2024
1d49fab
chore: Merge pg and add entity manager in getDefaultTenant
abhvsn Nov 27, 2024
24495f7
chore: Handle cacheable repo methods
abhvsn Nov 27, 2024
aeaefdc
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Nov 27, 2024
2cc9f0a
chore: Close entity manager in custom transaction
abhvsn Nov 27, 2024
668c121
chore: Fix conflicts
abhvsn Nov 28, 2024
58da953
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Nov 29, 2024
9a1069f
chore: Create transactional operator
abhvsn Nov 29, 2024
cbd91c0
chore: Commit to show the illegal pop exception and move to transacti…
abhvsn Dec 2, 2024
9a10e35
fix: Add seperate scheduler for DB ops
abhvsn Dec 3, 2024
a0b18c0
feat: Effectively utilise the db and transaction threads
abhvsn Dec 3, 2024
ba9d0dd
fix: Tests
abhvsn Dec 5, 2024
0e53fb0
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Dec 5, 2024
daa3fa4
chore: Persist entities for bulk ops
abhvsn Dec 5, 2024
e03c819
fix: Out of memory exception, add custom transactions on base cake class
abhvsn Dec 6, 2024
4958f96
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Dec 6, 2024
7d37c51
chore: Merge pg and resolve conflicts
abhvsn Dec 11, 2024
db7d709
chore: Fix findAllById method
abhvsn Dec 11, 2024
4073ddc
fix: CommonGitTest for id modification error
abhvsn Dec 11, 2024
56add0e
fix: LayoutServiceTest to use single transaction
abhvsn Dec 11, 2024
3420456
fix: Forking test by fixing constraint violation exception in baseCak…
abhvsn Dec 11, 2024
67c74c8
fix: bulkUpdate and bulkInsert by using saveAll
abhvsn Dec 11, 2024
e7ad71e
fix: usage pulse test by adding transactional for updateById in user …
abhvsn Dec 11, 2024
99e6f8f
fix: data integrity exceptions by relying on message
abhvsn Dec 11, 2024
59c5c8e
fix: Serialise DB calls for user workspace service test (look into th…
abhvsn Dec 11, 2024
d017d0a
fix: Appsmith repository test by moving JPA methods to custom reposit…
abhvsn Dec 11, 2024
3acbe10
fix: NewActionRepositoryTest as we are using the saveAll instead of b…
abhvsn Dec 11, 2024
95ca387
Merge branch 'pg' of github.com:appsmithorg/appsmith into poc/tx-enti…
abhvsn Dec 26, 2024
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: Add CRUDRepository extension
  • Loading branch information
abhvsn committed Nov 22, 2024
commit 1b8b3a0843a96f8a4ec47767d925ac6afd1c8118
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jakarta.persistence.EntityManager;
import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;
Expand All @@ -14,7 +15,7 @@
import java.util.Optional;

@NoRepositoryBean
public interface BaseRepository<T extends BaseDomain, ID extends Serializable> {
public interface BaseRepository<T extends BaseDomain, ID extends Serializable> extends CrudRepository<T, ID> {

default Optional<T> findById(ID id, EntityManager entityManager) {
return Optional.ofNullable(entityManager
Expand Down
Loading