feature/vue3-implementation-improvements #814
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#814
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/vue3-implementation-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
b8acc167be
to2ce6dd1fb3
2ce6dd1fb3
to8e7ce0504a
8e7ce0504a
to6cc66e2ac7
Closing in favor of #815
I think you confused this with #678
This branch consists of some changes that I want to merge into #815 instead.
With this branch here I'm not as confident as with the changes in #815 because there are some tests failing that didn't before (
task.spec.js
). But I also fixed some issues.Whoops, you're correct.
It looks like the test is failing because the request itself is broken - not sure why though:
Yes :D this is also where I currently hang. I think with some of the store updates I break some of the models. Also not sure why yet 🤷♂️
6cc66e2ac7
to8d52b312f6
5c291530ab
toa38cbbb445
I got a bit further with this issue👎
I think that when you use this branch instead of main the delete command is using the wrong
listId
in the request —0
instead of1
. Why that is I'm not sure yet. Probably something going wrong when initially creating / reading in the modal.8020d6d963
to5be6be98ab
5be6be98ab
to63c8de0234
63c8de0234
tofd77aaa123
WIP: feature/vue3-implementation-improvementsto feature/vue3-implementation-improvementsdpschen referenced this pull request2021-10-11 18:11:56 +00:00
Sounds like the listId is not set properly and it is then using the default which is 0. (0 is the default to match Go's null value)
Yeah I found out how to solve it. But not the issue :D
The fixes are in
0b68a473ef
andd7ed5b8f11
@konrad Since this passes all tests now I guess this can be merged in the vue3 branch after you checked it.
Looks great overall! I do have some comments though.
@ -74,6 +74,7 @@ export default {
this.assignees = value
},
immediate: true,
deept: true,
Shouldn't that be
deep
? (not
)Good catch! :)
@ -97,0 +97,4 @@
// error(err)
// } else {
console.error(err, vm, info)
// }
What should that do? The commented code doesn't feel right, please either remove it or replace it with something that handles the error.
This is part of something that I want to tackle in detail in #833.
Then maybe that should go in first?
#833 is based on this pull request
Ah I see, makes sense.
Just to clarify: I'm 100% on your side here. This should not be included when the vue3 transition is finished.
I just let this in here since in my head I "marked" the error handling as unfinished :D
@ -173,0 +155,4 @@
for (const b in state.buckets) {
if (state.buckets[b].id === task.bucketId) {
for (const t in state.buckets[b].tasks) {
if (state.buckets[b].tasks[t].id === task.id) {
What about using
findIndexById
here? At least to replace the inner loop?@ -259,0 +257,4 @@
// }
// }
// return condition
// })
Please remove the commented code.
@ -335,0 +344,4 @@
id: updatedBucketData.id,
listId: updatedBucketData.listId || oldBucket.listId,
title: oldBucket.title, // can't be empty in request
// ...bucket,
Please remove the commented code.
@ -24,1 +18,3 @@
}
computed: {
namespace() {
return this.$store.getters['namespaces/getNamespaceById'](this.$route.params.id)
With vue 2, parameters like
this.$route.params.id
sometimes were a string - has that changed with vue 3? If not, we'll need to convert that to an int here.I had some problems so I changed equality of how the
getNamespaceById
getter compares the ids. It's not strict (==
) so it doesn't matter if the values type is string or number. Maybeee I also did it in case we want to change the ids from number to string.@dpschen Could you look into the test failure?
for sure! seems like I broke something again with the review changes :)
920fdebf3c
tofa54e1f1de
@konrad I fast-forwared the vue3 branch. I didn't want to have a merge commit.
Maybe this was wrong 🤷♂️ ?
@dpschen Maybe 🤔