Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when duplicating a component #10896

Closed
nikclayton opened this issue Jan 30, 2024 · 5 comments · Fixed by #12320
Closed

Issues when duplicating a component #10896

nikclayton opened this issue Jan 30, 2024 · 5 comments · Fixed by #12320
Assignees
Labels
enhancement Adding or requesting a new feature. good first issue Opportunity for newcoming contributors. hacktoberfest This is suitable for Hacktoberfest. Don’t try to spam. help wanted Extra attention is needed.
Milestone

Comments

@nikclayton
Copy link

Describe the problem

Creating a component that's a copy of another component feels more difficult than it needs to be.

Describe the solution you would like

  1. It's not obvious that a component can be duplicated. When viewing a component there's no option to duplicate it. You have to create a new component, and choose the option to base the new component on an existing component. This is not discoverable and quite surprising.
  2. The new component does not duplicate key settings from the source component. In my testing so far the settings that are not duplicated are at least:
    a. The license
    b. The contributor agreement text
    c. The commit messages

These all have to be manually copied from an existing component to the new component.

I'd make it more obvious that duplication is possible with a copy icon (e.g,. something like https://www.flaticon.com/free-icon/copy_126498?term=copy&page=1&position=2&origin=tag&related_id=126498) next to the existing "browse" icon.

The lack of duplication of the other settings feels like a bug.

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Jan 30, 2024

Indeed, only a few of the settings are currently cloned:

if self.origin == "existing":
return self.redirect_create(
repo=component.get_repo_link_url(),
project=component.project.pk,
name=form.cleaned_data["name"],
slug=form.cleaned_data["slug"],
vcs=component.vcs,
source_language=component.source_language.pk,
)

More of them can definitely be added.

@nijel nijel added enhancement Adding or requesting a new feature. hacktoberfest This is suitable for Hacktoberfest. Don’t try to spam. help wanted Extra attention is needed. good first issue Opportunity for newcoming contributors. labels Jan 30, 2024
Copy link

This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.

You can learn about how to get started in our contributors documentation.

@ParthS007
Copy link
Contributor

@nijel I've included the requested information in duplication in #11079. Let me know if there's any other attribute that should be included for duplication.

Regarding the duplication functionality, should we consider showing the duplicate icon from the all components list page of a project? If so, what specific functionalities and attributes should be included in the duplication process?

@nijel nijel assigned nijel and gersona and unassigned nijel and ParthS007 Jul 30, 2024
@nijel
Copy link
Member

nijel commented Jul 30, 2024

@gersona #11079 might be a starting point here.

@nijel nijel added this to the 5.9 milestone Oct 14, 2024
Copy link

github-actions bot commented Nov 6, 2024

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature. good first issue Opportunity for newcoming contributors. hacktoberfest This is suitable for Hacktoberfest. Don’t try to spam. help wanted Extra attention is needed.
Projects
None yet
4 participants