Fix project's full_name erroring out
Some old projects have `full_name` erroring because their user namespace has a missing owner. The `full_name` consists of the user namespace's `human_name` + the project's name. So we return `path` if for any reason, the `owner_name` is nil.
显示
- app/models/namespace.rb 1 个添加, 1 个删除app/models/namespace.rb
- lib/api/entities/namespace_basic.rb 1 个添加, 1 个删除lib/api/entities/namespace_basic.rb
- spec/lib/api/entities/namespace_basic_spec.rb 47 个添加, 0 个删除spec/lib/api/entities/namespace_basic_spec.rb
- spec/models/namespace_spec.rb 8 个添加, 0 个删除spec/models/namespace_spec.rb
- spec/requests/api/projects_spec.rb 15 个添加, 0 个删除spec/requests/api/projects_spec.rb
加载中
想要评论请 注册 或 登录