Nikola Milovic
12/08/2020, 12:01 PMlocalhost:3000
, my routes are all /api/user/
, is my base url just <http://localhost:3000>
or <http://localhost:3000/api/user/>
? (it is just <http://localhost:3000>
from my testing, but I dont understand why exactly, all of the examples include /api in their baseulr)jw
12/08/2020, 2:40 PMJon Miller
12/12/2020, 7:16 PMyield.
Is there anyway I can work around this?jw
12/12/2020, 8:42 PMNikky
12/13/2020, 4:36 PMinsert:
INSERT INTO `users`
VALUES ?
;
afaik it sohuld be possible to repeat values for inserting multiple things at oncejw
12/13/2020, 5:16 PMmyanmarking
12/14/2020, 11:10 AMjessewilson
12/15/2020, 5:25 AMjessewilson
12/15/2020, 5:27 AMdanieeh
12/15/2020, 4:04 PMALTER TABLE technologyEntity
RENAME COLUMN keywords TO tags;
that is valid in postgresql but I’m getting this error:
Error Reading 2.sqm:
../entertainment/migrations/2.sqm line 2:11 - TO expected, got 'COLUMN'
1 ALTER TABLE technologyEntity
2 RENAME COLUMN keywords TO tags
^^^^^^
and if I remove the keyword COLUMN I get the same error.. any hints? 🙏 thanks!myanmarking
12/16/2020, 12:18 AMCREATE VIEW peopleWithLanguageAndVehicles AS
SELECT peopleEntity.id, peopleEntity.name, specieEntity.language, peopleEntity.isFavourite, ifnull(GROUP_CONCAT(pname), '') vehicles FROM peopleEntity
LEFT JOIN specieEntity ON peopleEntity.specieId == specieEntity.id
LEFT JOIN (vehiclesByUser) ON peopleEntity.id == pdi
GROUP BY peopleEntity.id;
myanmarking
12/16/2020, 12:19 AMmyanmarking
12/16/2020, 12:19 AMmyanmarking
12/16/2020, 11:09 AMsaket
12/16/2020, 4:39 PMLilly
12/25/2020, 5:51 PMJavier
12/28/2020, 11:14 AMThomas
01/06/2021, 10:56 AMDariusz Kuc
01/21/2021, 8:29 PMval blowsUp = "my comment %"
spec.addKdoc(blowsUp)
throws IllegalArgumentException
with dangling format characters in 'my comment %'
message
Tried passing the offending kdoc as a template using %S
, %P
and %L
with no luck. Do I need to manually escape the %
character in the string?jessewilson
01/22/2021, 11:24 AM%%
to escape itjw
01/22/2021, 12:41 PMDariusz Kuc
01/22/2021, 2:46 PMJavier
01/23/2021, 2:44 PMmyFlow.take(4).toList() // [A, B, C, D]
myFlow.test {
expectItem() // should be A but it mixed with next emissions
cancelAndIgnoreRemainingEvents()
}
Nikky
01/26/2021, 12:47 PMexplicitApi()
?
opkay.. i missed that i was on 1.6.0 and it works on latest.. stupid me.. the changelog even says soJavier
01/27/2021, 11:23 PMlaunch
inside of test
in FlowTurbine.kt
? It is using UNDISPATCHED
and it is giving me some problems, maybe add to test
function a param like start: CoroutineStart = UNDISPATCHED
can be a solutionjw
01/27/2021, 11:26 PMJavier
01/27/2021, 11:33 PMcontext
is the problem, using EmptyCoroutineContext
works for me.
About your question, I think using default params let the lib consumer check what is used and change it if the consumer needs it. What do you think about this?
suspend fun <T> Flow<T>.test(
timeout: Duration = 1.seconds,
start: CoroutineStart = UNDISPATCHED,
context: CoroutineContext = Unconfined,
validate: suspend FlowTurbine<T>.() -> Unit
) {
coroutineScope {
...
val collectJob = launch(start = start, context = context) {
...
}
}
}
Javier
01/27/2021, 11:35 PMcontext
param, but I don't know if can be useful for someone the start
param.Javier
01/27/2021, 11:39 PMjw
01/27/2021, 11:40 PM