# Conversion of T3D Challenge --> Hub
## Steps
- [x] Create backup of Alkemio database
- [x] Restore backup and test it locally
- **Note: restoring the canvas_templates data breaks the migration, run them separately, one by one**
- [x] Lead org must be one for the migration (VNG)
- [x] The rest of the orgs then need to be re-added as member orgs post-migration

- [x] Apply conversion on Prod environment
- [x] Add gerlof.dehaan@vng.nl as Hub / Challenge admin to all new Hub and challenges
- [x] Add all context tags to the newly created entities
- [x] Set hub templates to equal the ones from main hub `digileefomgeving`
- [x] Make the new hub public
- [x] Make the new hub preferences same as hub `digileefomgeving`


- [x] Query to retrieve tags from old entities
```graphql
query hubs {
hub(ID: "digileefomgeving") {
nameID
displayName
challenge(ID: "t3d") {
nameID
displayName
tagset {
name
tags
}
opportunities {
nameID
displayName
tagset {
name
tags
}
}
}
}
}
```
Results:
```
{
"data": {
"hub": {
"nameID": "digileefomgeving",
"displayName": "Digitale Leefomgeving",
"challenge": {
"nameID": "t3d",
"displayName": "Programma Totaal Driedimensionaal",
"tagset": {
"name": "default",
"tags": [
"geo-basisregistraties",
"BAG",
"BGT",
"WOZ",
"Samenhangende Objecten Registratie",
"DisGeo",
"3D gegevensstandaarden",
"3D tooling",
"BIM"
]
},
"opportunities": [
{
"nameID": "3dinwinnen",
"displayName": "A. Inwinnen in 3D",
"tagset": {
"name": "default",
"tags": [
"3D inwinning",
"BIM",
"Lidar",
"Orkestratie",
"conversie",
"CityGML",
"CityJson"
]
}
},
{
"nameID": "3dregistratie",
"displayName": "B. Registreren in 3D",
"tagset": {
"name": "default",
"tags": [
"3D muteren",
"CityGML",
"CityJson",
"3D database",
"datamodel"
]
}
},
{
"nameID": "3dgebruik",
"displayName": "C. Gebruiken in 3D",
"tagset": {
"name": "default",
"tags": [
"3D gebruik",
"BIM",
"3D viewer",
"CityGML",
"CityJson",
"Sketchup",
"Vergunningcheck"
]
}
},
{
"nameID": "3dsamenhang",
"displayName": "D. Samenhang in de 3D keten",
"tagset": {
"name": "default",
"tags": [
"Ketenarchitectuur",
"Standaarden",
"Opschaalbaarheid",
"SOR",
"3DBAG",
"3DBasisvoorziening"
]
}
}
]
}
}
}
}
```
- [x] remove ācā suffix that migration appended to all new challenge nameIDs. This can be done direct on DB.
- [x] @hoyterutteman once challenge nameIDs are adjusted can you loop through context / aspect info to look for old URLs & update them
- [x] @hoyterutteman also creat a new T3D challenge in the digileefomgeving hub that states that the content has moved to the new Hub location. Deeper links we will need to look at separately
- [ ] @hoyterutteman reply to email from Denise that Neil will forward you separately informing Gerlof that the move has happened a bit prematurely but that it was successful & that initial post migration tidy up has already been done, new redirect challenge etc
###### tags: `Operations`