Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Implement redirect to dashboard after login #104

Merged
merged 3 commits into from
Aug 8, 2013

Conversation

alex-sl-eng
Copy link
Member

  • Implement redirect to dashboard after login, if its to redirect to home page
  • Add 'Dashboard' link on top menu when user logged in

@ghost ghost assigned carlosmunoz Aug 8, 2013
if(userRedirect.isRedirect() && !userRedirect.isRedirectToHome())
{
return "redirect";
}
}
return "dashboard";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new "dashboard" value should be up in the comments.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better still, all these magic strings could be encapsulated in an enumeration - that would make it impossible to add another one without adding it to the reference location. Presumably if .oString() is overridden, seam would still get the string, and there would be some concrete identifiers to attach javadoc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a nice refactoring that we can look into later as it is larger than that. In order to take full advantage of an enumerated value we need to refactor a few methods accesed in pages.xml and a few other places.

I am all for using more enumerations... I like type strength.

@carlosmunoz
Copy link
Member

👍 after that minor documentation change it should be good to go.

@carlosmunoz
Copy link
Member

@davidmason Are you happy to go through with this merge without the enumeration?

@davidmason
Copy link
Contributor

@carlosmunoz Should be fine without adding an enum yet - it's no worse than it was before the change. If we intend to use an enum eventually we could add a TODO, but I don't think it's a big deal.

carlosmunoz added a commit that referenced this pull request Aug 8, 2013
Implement redirect to dashboard after login
@carlosmunoz carlosmunoz merged commit b4ed242 into integration/master Aug 8, 2013
@carlosmunoz carlosmunoz deleted the fix_dashboard_redirection branch August 8, 2013 23:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants