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

Add support for making an exact copyof an app in Altinn Studio #6058

Closed
8 tasks done
acn-sbuad opened this issue Apr 19, 2021 · 1 comment
Closed
8 tasks done

Add support for making an exact copyof an app in Altinn Studio #6058

acn-sbuad opened this issue Apr 19, 2021 · 1 comment
Labels
area/dashboard Area: Related to the dashboard blocked Status: This issue is blocked. See comments in the issue for further details. kind/user-story Used for issues that describes functionality for our users. solution/studio/designer Issues related to the Altinn Studio Designer solution. status/ready-for-dev Status: Used for issues that are ready for development. Has been through grooming. ux UX help needed
Milestone

Comments

@acn-sbuad
Copy link
Contributor

acn-sbuad commented Apr 19, 2021

Description

For annual revisions of an application it would be useful to start development of a new version of an applicaiton based on an existing version.

Design Considerations

Where: My first instinct is to put this functionality in our dashboard. We have done a larger concept work of how we can show this page in the future. To me it is logical to put the copy functionality in a context menu on the dashboard.

🚧 Concept draft for illustration purpose 🚧
Skjermbilde 2021-08-05 kl  09 51 09

It would be a reach to ask for this to be realized in this issue, but we could implement the context menu. If it could be expanded and be carried over to the new design when implemented.

Proposed solution on how to implement a context menu on our card designs
Skjermbilde 2021-08-05 kl  10 41 45
Challenge
Our dashboard has a limitation on how many apps that can be viewed and searched on. If this limitation hits one of our user they will not be able to copy the app. (#4501)

If we do not think this bug will affect our users I propose this solution, if we think this will be an issue we should look into an alternative solution.

Prototype with with name popover
The sketches are based on the design work on #3328. Therefore some aspects of the sketches will look different than how our dashboard looks now.

Considerations

  • Gitea doesn't seem to have an endpoint for mirroring a gitea repository, could we use the git commands directly or will we have to copy the contents from the master repository on disk?
  • Are we able to copy all the permissions of the existing repository ?
  • How will the users permissions affect creating a new repository for the org? E.g. is user allowed to create new repositories?
  • Test if we can use a clone>edit remote>push approach to copying the app
  • Is this functionality limited to the apps or would it be useful for other types of repositories too?

Acceptance criteria

  • It is possible to copy an existing app in Altinn Studio
  • Application does not need to function (e.g. mismatch in configuration is okay)

Specification tasks

  • How should the user experience be in Altinn Studio

Development tasks

  • Implement logic in designer backend to copy the contents of a repository into another repo
  • Identify which manual changes must be done for the app to be operational
    • Policy file
  • Write user documentation on how app developers can copy apps & make required changes
    • Altinn docs.
    • Picture guide
  • QA
  • Manual test is complete (if relevant)

Test

Add test cases here as checkboxes that are being tested as part of the changes.

@acn-sbuad acn-sbuad added area/dashboard Area: Related to the dashboard solution/studio/designer Issues related to the Altinn Studio Designer solution. kind/user-story Used for issues that describes functionality for our users. ux/visual-design ux UX help needed status/ready-for-specification Status: Used for issues that are ready for functional decription og detailed design. labels Apr 19, 2021
@acn-sbuad acn-sbuad changed the title Add support for copying an app in Altinn Studio Add support for making an exact copyof an app in Altinn Studio Apr 19, 2021
@altinnadmin
Copy link
Member

altinnadmin commented Apr 19, 2021

@acn-sbuad The ideal solution for this would be to add support for forking inside the same org in Gitea since that will also keep the history intact and simplify "bugfix-flow" across yearly revisions.

There are several existing issues for that, but no real functional use case that has been able to convince the maintainers so far.

Perhaps we have a chance, especially if we provide a pull request?

@lvbachmann lvbachmann added this to the 2021 - W25/26 milestone Jun 21, 2021
@tba76 tba76 modified the milestones: 2021 - W25/26, 2021 - w27/31 Jul 5, 2021
@Febakke Febakke assigned Febakke and unassigned Febakke Aug 4, 2021
@acn-sbuad acn-sbuad self-assigned this Aug 5, 2021
@acn-sbuad acn-sbuad added status/ready-for-dev Status: Used for issues that are ready for development. Has been through grooming. and removed status/ready-for-specification Status: Used for issues that are ready for functional decription og detailed design. labels Aug 9, 2021
@acn-sbuad acn-sbuad removed their assignment Aug 16, 2021
@jeevananthank jeevananthank added the blocked Status: This issue is blocked. See comments in the issue for further details. label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Area: Related to the dashboard blocked Status: This issue is blocked. See comments in the issue for further details. kind/user-story Used for issues that describes functionality for our users. solution/studio/designer Issues related to the Altinn Studio Designer solution. status/ready-for-dev Status: Used for issues that are ready for development. Has been through grooming. ux UX help needed
Projects
None yet
Development

No branches or pull requests

6 participants