Skip to content

Migration to Grails 3

Pablo Pazos Gutiérrez edited this page Oct 4, 2019 · 4 revisions

Domain

User

  • added String id uuid generated
  • removed uid field
  • removed username field (username will be the email)

Classes

Packages

  • changed org.codehaus.groovy.grails.web.json.JSONObject to org.grails.web.json.JSONObject
  • changed org.codehaus.groovy.grails.commons.GrailsDomainClass to grails.core.GrailsDomainClass

Unused includes

  • removed import org.codehaus.groovy.grails.commons.GrailsDomainClass from UserRole

SEC removal

Need to change the sec:xxx taglibs to check if the logged user has a role

  • this is used in a lot of places in the GSP, like in the admin layout

TODOs

Need to change all references to requestMap because that is part of Spring Sec, we need another way of checking permissions per role per path, check migration of that on NG

Change domain.constraints to domain.constrainedProperties

Clone this wiki locally