project icon indicating copy to clipboard operation
project copied to clipboard

[14.0][IMP] project_task_dependency: add open dep. task button

Open ilyasProgrammer opened this issue 3 years ago • 3 comments

ilyasProgrammer avatar Aug 15 '22 10:08 ilyasProgrammer

Hi @astirpe, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Aug 15 '22 10:08 OCA-git-bot

As this module is deprecated in v15, not sure if adding too much things that won't exist in next version in core is a good idea.

pedrobaeza avatar Aug 16 '22 07:08 pedrobaeza

As this module is deprecated in v15, not sure if adding too much things that won't exist in next version in core is a good idea.

Yup, just let's add the smart button "Blocking" and it's done, that's ok ?

elvise avatar Aug 16 '22 08:08 elvise

@pedrobaeza merge ? :)

elvise avatar Aug 18 '22 12:08 elvise

Is these features available in core in 15.0? My fear is that transitioning from this enhanced version to core v15 option will provoke conflict ripping some features, and in that case, better to extract them apart for keeping them across versions.

pedrobaeza avatar Aug 18 '22 14:08 pedrobaeza

Is these features available in core in 15.0? My fear is that transitioning from this enhanced version to core v15 option will provoke conflict ripping some features, and in that case, better to extract them apart for keeping them across versions.

@pedrobaeza Sure, we have implement only the same features

elvise avatar Aug 18 '22 14:08 elvise

I don't see the smart-button of blocking count in v15, and please squash commits.

@pedrobaeza It appear when there is one or more dependencies

image

elvise avatar Aug 19 '22 07:08 elvise

What I see in v15 is dependent_tasks_count field and smart-button, and it seems to not be the same. Why don't you copy/paste such code for maximizing also the compatibility in extensions?

pedrobaeza avatar Aug 19 '22 15:08 pedrobaeza

What I see in v15 is dependent_tasks_count field and smart-button, and it seems to not be the same. Why don't you copy/paste such code for maximizing also the compatibility in extensions?

_compute_dependent_tasks_count in v15 is different. And there is used different fields. I renamed field to dependent_tasks_count and method to _compute_dependent_tasks.

ilyasProgrammer avatar Aug 19 '22 16:08 ilyasProgrammer

Yes, but then we go again to my comment in https://github.com/OCA/project/pull/961#issuecomment-1219566966 that I don't want something different in one version from the other, or the transition will be bad.

pedrobaeza avatar Aug 19 '22 16:08 pedrobaeza

Yes, but then we go again to my comment in #961 (comment) that I don't want something different in one version from the other, or the transition will be bad.

@ilyasProgrammer can you check it ?

elvise avatar Aug 19 '22 16:08 elvise

@pedrobaeza But fields names already different. Field i've added has same name as in V15. I dont understand what kind of transition problems it can cause.

ilyasProgrammer avatar Aug 19 '22 17:08 ilyasProgrammer

A "user transition". They get used to some features on v14, and when moving to v15, they don't have a feature, but the contrary one, causing a lot of troubles. That's why I want "feature parity" between v14 OCA module and v15 core module, or if not, less features in v14 than in v15.

pedrobaeza avatar Aug 19 '22 17:08 pedrobaeza

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot avatar Aug 20 '22 11:08 OCA-git-bot

Hi @pedrobaeza, I don't have very clear how to proceed with this PR.

Do you think we should just do a backport of v.15 core features, regardless of the features of project_task_dependency?

If yes, should we push a new module in this repo? How should we name it? Thanks for your help, I don't have much experience with backportings.

francesco-ooops avatar Aug 23 '22 14:08 francesco-ooops

Yes, I recommend to backport v15 features in this module if you want to have them, and put any other improvement in an extra layer.

pedrobaeza avatar Aug 23 '22 17:08 pedrobaeza

@pedrobaeza I'm not sure it would make much sense to backport features into project_task_dependency module, as the features are almost the same (the differences being a tab with a different name and the smart buttons we're trying to backport).

If that's ok we can just backport everything from v15 into another module and then users will decide whether to use project_task_dependency or the new module with the same features as core v15

this means in repo v14 there will be two modules with almost the same features, is that ok for you?

francesco-ooops avatar Aug 23 '22 17:08 francesco-ooops

But the problem is that current users of this module will transition to v15 core module, and adding features that are not going to be in v15 will be a bad migration path for them. I don't want an additional module with v15 features. What I don't want is that this module gets bigger from what it is, and on v15 forces us to maintain an additional module apart from core for not having them to lose some of the features that were added in v14.

pedrobaeza avatar Aug 23 '22 17:08 pedrobaeza

Ok, so we can't get this module bigger and we can't create a new one which will be discarded after v15 (no maintenance needed I think?), what can we do? 🥲

On Tue, Aug 23, 2022, 19:49 Pedro M. Baeza @.***> wrote:

But the problem is that current users of this module will transition to v15 core module, and adding features that are not going to be in v15 will be a bad migration path for them. I don't want an additional module with v15 features. What I don't want is that this module gets bigger from what it is, and on v15 forces us to maintain an additional module apart from core for not having them to lose some of the features that were added in v14.

— Reply to this email directly, view it on GitHub https://github.com/OCA/project/pull/961#issuecomment-1224457830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANHLKUIJTHXHUA7WKXF3D53V2UFKNANCNFSM56RZNZFQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

francesco-ooops avatar Aug 23 '22 17:08 francesco-ooops

But why the v15 feature doesn't fit you? It's the same feature, but reversed.

pedrobaeza avatar Aug 23 '22 18:08 pedrobaeza

v15 is great! Our goal is to adopt those features in v14

But what should we do to have those features in v14? This is what's unclear to me

francesco-ooops avatar Aug 23 '22 18:08 francesco-ooops

What I'm proposing is to adopt the same field name + view changes as of v15.

pedrobaeza avatar Aug 24 '22 07:08 pedrobaeza

ok, so we implement depend_on_ids and the view changes, but what do we do with the existing dependency_task_ids ?

francesco-ooops avatar Aug 24 '22 07:08 francesco-ooops

I was talking more about dependent_tasks_count, which is the missing feature here. dependency_task_ids can be kept and adapt the other to this one, and migrate on OpenUpgrade, or you totally switch to depend_on_ids + dependent_tasks_count here, and include already migration script for this adaptation.

pedrobaeza avatar Aug 24 '22 07:08 pedrobaeza

@pedrobaeza dependent_tasks_count is added in this module with the same name as in V15 and with the same compute method name. I dont understand why is it wrong. Could you explain please.

ilyasProgrammer avatar Aug 24 '22 12:08 ilyasProgrammer

/ocabot merge minor

pedrobaeza avatar Aug 24 '22 13:08 pedrobaeza

This PR looks fantastic, let's merge it! Prepared branch 14.0-ocabot-merge-pr-961-by-pedrobaeza-bump-minor, awaiting test results.

OCA-git-bot avatar Aug 24 '22 13:08 OCA-git-bot

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot avatar Aug 24 '22 14:08 OCA-git-bot

Congratulations, your PR was merged at 7f102cd7e492bd8c0e3a3d75aaf8460d22ccd194. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Aug 24 '22 14:08 OCA-git-bot