1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-642 Editor | Suggest marketplace relations for user (#2764)

* DROID-642 legacy relationList useCase

* DROID-642 legacy useCases

* DROID-642 legacy object relations store

* DROID-642 di

* DROID-642 search relations by workspace id

* DROID-642 if else fix

* DROID-642 fix, invoking the wrong method leeded to the loop

* DROID-642 fix relation blocks binding

* DROID-642 navigation fixed

* DROID-642 fix tests
This commit is contained in:
Konstantin Ivanov 2022-12-16 08:48:01 +01:00 committed by GitHub
parent 1eb7ae4c7f
commit 4ac2255dd4
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 357 additions and 433 deletions

View file

@ -11,7 +11,8 @@ fun StubRelationObject(
isReadOnly: Boolean = false,
objectTypes: List<Id> = emptyList(),
relationOptionsDict: List<Id> = emptyList(),
sourceObject: Id = MockDataFactory.randomUuid()
sourceObject: Id = MockDataFactory.randomUuid(),
workspaceId: Id = MockDataFactory.randomString()
): ObjectWrapper.Relation = ObjectWrapper.Relation(
map = mapOf(
Relations.ID to id,
@ -22,7 +23,8 @@ fun StubRelationObject(
Relations.RELATION_FORMAT_OBJECT_TYPES to objectTypes,
Relations.RELATION_FORMAT to format.code.toDouble(),
Relations.RELATION_OPTION_DICT to relationOptionsDict,
Relations.SOURCE_OBJECT to sourceObject
Relations.SOURCE_OBJECT to sourceObject,
Relations.WORKSPACE_ID to workspaceId
)
)