1. I think it is necessary to add resources to rename,
2. Whether to prompt the user before renaming, if the resource is renamed, it 
will affect the operation of other tasks



DolphinScheduler(Incubator) commiter
CaibiaoXiang ??????
[email protected]


------------------ ???????? ------------------
??????:&nbsp;"leon bao"<[email protected]&gt;;
????????:&nbsp;2020??5??11??(??????) ????6:41
??????:&nbsp;"dev"<[email protected]&gt;;
????:&nbsp;"gaojun2048"<[email protected]&gt;;
????:&nbsp;Re: ?????? [DISCUSSION] Is it allowed to change the resource file 
suffix when update resource name?



*1. All modifications cannot be made silently, and must be approved by
theuser, because this may cause errors to others who use this file And
loss.*

i think the approve of modifications belongs to business process, that is
not responsibility of the system.


&gt; *2. If we need to modify this file, the best way is to create a new file,*
&gt;

&gt; *and then notify the user that the user can choose to use the new file 
or**continue
&gt; to use the original file.*



If the user is sure to change the suffix of the file,&nbsp; you can't let him
change all the places used, which is too inconvenient.
The system can not make decisions on behalf of users. Once users make
decisions to modify the suffix of resource files, the system should provide
a convenient solution.


GabryWu <[email protected]&gt; ??2020??5??11?????? ????1:35??????

&gt; 1. All modifications cannot be made silently, and must be approved by the
&gt; user, because this may cause errors to others who use this file And loss.
&gt;
&gt;
&gt; Yes ,&amp;nbsp; &amp;nbsp;minority is subordinate to the majority, if so 
many
&gt; users used the resource file,
&gt; then we can't simply think the suffix is wrong.&amp;nbsp;
&gt; who should make this decision that the suffix is wrong ?
&gt;
&gt;
&gt; ------------------&amp;nbsp;????????&amp;nbsp;------------------
&gt; ??????:&amp;nbsp;"JUN GAO"<[email protected]&amp;gt;;
&gt; ????????:&amp;nbsp;2020??5??11??(??????) ????1:27
&gt; ??????:&amp;nbsp;"dev"<[email protected]&amp;gt;;
&gt; ????:&amp;nbsp;"GabryWu"<[email protected]&amp;gt;;
&gt; ????:&amp;nbsp;Re: ?????? [DISCUSSION] Is it allowed to change the 
resource file
&gt; suffix when update resource name?
&gt;
&gt;
&gt;
&gt; I agree with @GabryWu
&gt; I think once the resource file is used by others, it is best not to modify
&gt; it directly.
&gt; For the modification of resource files that can be used by other people, we
&gt; should abide by a principle:
&gt; 1. All modifications cannot be made silently, and must be approved by the
&gt; user, because this may cause errors to others who use this file And loss.
&gt; 2. If we need to modify this file, the best way is to create a new file,
&gt; and then notify the user that the user can choose to use the new file or
&gt; continue to use the original file.
&gt;
&gt; [email protected] <[email protected]&amp;gt; 
??2020??5??9??????
&gt; ????7:35??????
&gt;
&gt; &amp;gt; May be I didn't describe clearly.I try to describe clearly.
&gt; &amp;gt; The resource name I said means the resource full name,it includes
&gt; name and
&gt; &amp;gt; suffix.
&gt; &amp;gt; @GabryWu
&gt; &amp;gt; &amp;gt; Why we should consider two files with different suffix 
is the
&gt; same file ?
&gt; &amp;gt;&amp;nbsp; If so ,what's meaning of the file suffix?
&gt; &amp;gt;
&gt; &amp;gt; Now verify the uniqueness of the resource file,it need verfiy the
&gt; resource
&gt; &amp;gt; full name.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; DolphinScheduler(Incubator) PPMC
&gt; &amp;gt; Gang Li ????
&gt; &amp;gt;
&gt; &amp;gt; [email protected]<mailto:[email protected]&amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; ???????? GabryWu
&gt; &amp;gt; ?????????? 2020-05-09 17:17
&gt; &amp;gt; ???????? dev
&gt; &amp;gt; ?????? lgcareer2019
&gt; &amp;gt; ?????? ?????? [DISCUSSION] Is it allowed to change the resource 
file suffix
&gt; when
&gt; &amp;gt; update resource name?
&gt; &amp;gt; after writing a long code file, i select a wrong suffix. if cannot
&gt; rename
&gt; &amp;gt; the suffix, i have to delete the file and create a new one. It's 
very
&gt; &amp;gt; inconvenient.
&gt; &amp;gt; --------------------------------------
&gt; &amp;gt; convenient is another thing! We should make the logic reasonable.
&gt; &amp;gt; If resource file name can't be changed at all, that can avoid a 
lot of
&gt; &amp;gt; problems.
&gt; &amp;gt; We can clone one resource file from another ,which equals to
&gt; &amp;gt; DELETING-AND-CREATING
&gt; &amp;gt;
&gt; &amp;gt; ------------------ ???????? ------------------
&gt; &amp;gt; ??????: "leon bao"<[email protected]&amp;gt;;
&gt; &amp;gt; ????????: 2020??5??9??(??????) ????5:10
&gt; &amp;gt; ??????: "dev"<[email protected]&amp;gt;;
&gt; &amp;gt; ????: "lgcareer2019"<[email protected]&amp;gt;;
&gt; &amp;gt; ????: Re: [DISCUSSION] Is it allowed to change the resource file 
suffix
&gt; when
&gt; &amp;gt; update resource name?
&gt; &amp;gt;
&gt; &amp;gt; there is a issue about this:
&gt; &amp;gt; https://github.com/apache/incubator-dolphinscheduler/issues/1397
&gt; &amp;gt 
<https://github.com/apache/incubator-dolphinscheduler/issues/1397&amp;gt&gt;;
&gt; &amp;gt; in summary, the issue reporter cannot preview the renamed resource
&gt; when it
&gt; &amp;gt; was renamed a wrong suffix.
&gt; &amp;gt; but i think this is not a bug, because if suffix is 
wrong,&amp;nbsp; you
&gt; can rename
&gt; &amp;gt; a right one.
&gt; &amp;gt;
&gt; &amp;gt; @GabryWu
&gt; &amp;gt; after writing a long code file, i select a wrong suffix. if cannot
&gt; rename
&gt; &amp;gt; the suffix, i have to delete the file and create a new one. It's 
very
&gt; &amp;gt; inconvenient.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; @lgcareer2019
&gt; &amp;gt;
&gt; &amp;gt; We should trust the user, before changing the file suffix, user
&gt; clearly
&gt; &amp;gt; know the file suffix is wrong.
&gt; &amp;gt; At the same time,&amp;nbsp; the resource is used as 'resource id' 
in task
&gt; &amp;gt; definition, not 'resource name' ,&amp;nbsp; so there is nothing 
with the
&gt; task when
&gt; &amp;gt; renaming the resource suffix.
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; GabryWu <[email protected]&amp;gt; ??2020??5??9?????? 
????4:06??????
&gt; &amp;gt;
&gt; &amp;gt; &amp;gt; I think the resource file name (including suffix) can't 
be
&gt; changed, which
&gt; &amp;gt; &amp;gt; contents can be overwritten.&amp;amp;nbsp;&amp;amp;nbsp;
&gt; &amp;gt; &amp;gt; Why we should consider two files with different suffix 
is the
&gt; same file ?
&gt; &amp;gt; &amp;gt; If so ,what's meaning of the file suffix?
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; if user want to delete a resource file, a tips telling 
that the
&gt; file is
&gt; &amp;gt; &amp;gt; used by some job is better
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; 
------------------&amp;amp;nbsp;????????&amp;amp;nbsp;------------------
&gt; &amp;gt; &amp;gt; ??????:&amp;amp;nbsp;"[email protected]"<
&gt; [email protected]&amp;amp;gt;;
&gt; &amp;gt; &amp;gt; ????????:&amp;amp;nbsp;2020??5??9??(??????) ????3:54
&gt; &amp;gt; &amp;gt; 
??????:&amp;amp;nbsp;"dev"<[email protected]&amp;amp;gt;;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; ????:&amp;amp;nbsp;[DISCUSSION] Is it allowed to change 
the resource
&gt; file suffix
&gt; &amp;gt; &amp;gt; when update resource name?
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; Hi Dev Team.
&gt; &amp;gt; &amp;gt; Here is a short topic[1] to discuss.
&gt; &amp;gt; &amp;gt; Background
&gt; &amp;gt; &amp;gt; 1. User has created a resource that which name is 
example and
&gt; suffix is
&gt; &amp;gt; &amp;gt; txt.
&gt; &amp;gt; &amp;gt; 2. The above resource has been authorzied to other users 
and it
&gt; was used
&gt; &amp;gt; &amp;gt; by some process definitons.
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; To Discuss
&gt; &amp;gt; &amp;gt; If a user need update the resource name,Is it allowed to 
change
&gt; the
&gt; &amp;gt; &amp;gt; resource file suffix when update resource name?
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; If it is allowed to change the resource file suffix,May 
be lead
&gt; to a
&gt; &amp;gt; &amp;gt; problem that the tasks those which used this resource 
maybe
&gt; executed
&gt; &amp;gt; &amp;gt; failure.
&gt; &amp;gt; &amp;gt; If it is not allowed to change the resource file,If 
created the
&gt; resource
&gt; &amp;gt; &amp;gt; and found the resource suffix is wrong,The user has to 
delete it
&gt; and
&gt; &amp;gt; create
&gt; &amp;gt; &amp;gt; it again.
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; Please feel free to discuss.
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; 1.
&gt; https://github.com/apache/incubator-dolphinscheduler/issues/2598
&gt; &amp;gt 
<https://github.com/apache/incubator-dolphinscheduler/issues/2598&amp;gt&gt;;
&gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; DolphinScheduler(Incubator) PPMC
&gt; &amp;gt; &amp;gt; Gang Li ????
&gt; &amp;gt; &amp;gt;
&gt; &amp;gt; &amp;gt; 
[email protected]<mailto:[email protected]&amp;amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt; --
&gt; &amp;gt; DolphinScheduler(Incubator)&amp;nbsp; PPMC
&gt; &amp;gt; BaoLiang ????
&gt; &amp;gt; [email protected]
&gt; &amp;gt;
&gt; &amp;gt;
&gt;
&gt; --
&gt;
&gt; DolphinScheduler(Incubator)&amp;nbsp; PPMC
&gt; Jun Gao ????
&gt; [email protected]



-- 
DolphinScheduler(Incubator)&nbsp; PPMC
BaoLiang ????
[email protected]

Reply via email to