Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • briar briar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 783
    • Issues 783
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briar
  • briarbriar
  • Issues
  • #427

Closed
Open
Created Jun 01, 2016 by Ernir Erlingsson@ernirContributor

Loading authors

Currently, in the forum, the author is loaded like this.

   private void loadAuthor() throws DbException {
		Collection<LocalAuthor> localAuthors =
				identityManager.getLocalAuthors();

		for (LocalAuthor author : localAuthors) {
			if (author == null)
				continue;
			data.setLocalAuthor(author);
			break;
		}
	}

This follows the assumption that the first author (with a null safety check) is the correct author.

  • Am I right to assume that we are following a single author scheme at the moment?
  • Shouldn't we load up the author once, after login, and then just re-use that instance throughout the app ? Heck, we could even inject it.
Assignee
Assign to
Time tracking