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

Migrate from "digdir" to "altinn" GitHub organization #1144

Open
5 tasks done
elsand opened this issue Sep 17, 2024 · 2 comments
Open
5 tasks done

Migrate from "digdir" to "altinn" GitHub organization #1144

elsand opened this issue Sep 17, 2024 · 2 comments
Assignees

Comments

@elsand
Copy link
Member

elsand commented Sep 17, 2024

Introduction

We need to move repos and project from "digdir" to "altinn" org on GitHub

Description

Due to monitoring and management requirements, we are required to migrate Git repositories from "digdir" to "altinn" orgs.

GitHub offers tools for this, including redirects on remotes set up in repo clones, but we must consider:

  • Workflows will break, due to federated credentials being pinned to org/repo
  • Docs-branch currently available at digdir.github.io/dialogporten must be available for a while longer (will be decommisioned when docs are fully migrated), presumably at altinn.github.io/dialogporten (hopefully there are redirects)
  • Storybook-branch deployed to https://digdir.github.io/dialogporten-frontend/ must continue to work
  • Slack-integrations
  • The project at https://github.com/orgs/digdir/projects/7/ isn't strictly required to migrate, but it's natural to consider doing it at the same time. If not, we must make sure that links aren't broken (hopefully no)
  • Check that links in the roadmap doesn't break

TODO

Operasjon duplisere og arkivere digdir/dialogporten og digdir/dialogporten-frontend

Steps:

migrering:

step 1: ✅
Export the project using https://medium.com/@kmaehashi/transferring-github-projects-between-orgs-91dd1e259d5d

step 2: ✅
Attempt copy project

  • Associate all issues in repos with the copied project

step 3:✅
Create sub-teams in Altinn-repo

Step 4:✅
Transfer repositories

(IF STEP 4 FAILS) -> step 5: ✅
Import project

oppdatere federation 👷
Få inn pull-request for å endre github-repo i terraform-templaten til platform: Altinn/altinn-platform#1195

fikse deployments

  • Generere PAT for å få release-please til å fungere (vil helst fjerne bruker av PAT, men da må vi tweake deployment-strategien litt) (Bjørn, lag en PAT ila. møtet ang. transfer)
  • Endre referanser til base images for applikasjoner
  • Må vurdere om vi skal flytte packages eller ikke. https://github.com/orgs/community/discussions/8577 Kan være formålstjenlig for historikkens skyld, utover det vil de være tilgjengelig i digdir-organisasjonen (så lenge det lever 🤔)

annet

  • Endre hardkodede referanser til repoet. changelog, der vi peker til et issue m.m. ✅
  • Enable coderabbit ✅
  • Enable sonarcloud 👷
  • Oppdater project views og workflows ✅

Tasks

Preview Give feedback
@elsand
Copy link
Member Author

elsand commented Oct 9, 2024

Avventer denne inntil vi får avklart problematikk rundt runners @altinnadmin

@arealmaas
Copy link
Collaborator

arealmaas commented Dec 19, 2024

Operasjon duplisere og arkivere digdir/dialogporten og digdir/dialogporten-frontend

Steps:

migrering:
Migrere gh project + repository: https://medium.com/@kmaehashi/transferring-github-projects-between-orgs-91dd1e259d5d

Her må vi kjøre et script for å eksportere project for deretter å kjøre script for å importere project til ny organization.

Her ser det også ut til at vi mister views, noen andre konfigurasjoner og assignees.

For instance, views, order of project items, or workflows must be reconfigured manually

oppdatere federation
Få inn pull-request for å endre github-repo i terraform-templaten til platform: Altinn/altinn-platform#1195

fikse deployments

  • Generere PAT for å få release-please til å fungere (vil helst fjerne bruker av PAT, men da må vi tweake deployment-strategien litt) (Bjørn, lag en PAT ila. møtet ang. transfer)
  • Endre referanser til base images for applikasjoner
  • Må vurdere om vi skal flytte packages eller ikke. https://github.com/orgs/community/discussions/8577 Kan være formålstjenlig for historikkens skyld, utover det vil de være tilgjengelig i digdir-organisasjonen (så lenge det lever 🤔)
  • TODO

fikse docs

  • Endre A-record(?) til å peke til det nye repoet

annet

  • Endre hardkodede referanser til repoet. changelog, der vi peker til et issue m.m.
  • Enable coderabbit
  • Enable sonarcloud

@elsand elsand moved this from Ready to Doing in Dialogporten / Arbeidsflate - NY Jan 10, 2025
arealmaas added a commit that referenced this issue Jan 10, 2025
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Related Issue(s)

- #1144

## Verification

- [ ] **Your** code builds clean without any errors or warnings
- [ ] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants