Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCHR-4072: Update help link to lead to freshdesk knowledge base #536

Conversation

ajesamson
Copy link
Contributor

@ajesamson ajesamson commented Aug 14, 2018

Overview

This PR changes the link pointed at by the help menu for SSP to http://userguide.civihr.org/en/latest/

Before

User guide help menu points to civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/

After

User guide help menu points to http://userguide.civihr.org/en/latest/

Technical Details

The menu settings was updated from drupal while Feature module was used to generate updated configuration files.

An upgrader have also been added to remove old menu link in existing site for situations where feature is being reverted. This prevents having two help menu on the main menu.

...
db_delete('menu_links')
  ->condition('link_title', 'help')
  ->condition('menu_name', 'main-menu')
  ->execute();
...

Copy link
Member

@davialexandre davialexandre left a comment

Choose a reason for hiding this comment

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

@ajesamson as far as I remember, features can't update existing menu links. This means that if we revert this feature in an existing site, we'll end up with two "Help" menu items (one with the old link and one with the new link). Could you please confirm if that is true and, if so, create an upgrader to remove the old menu link?

@ajesamson ajesamson force-pushed the PCHR-4072-update-help-link-to-lead-to-freshdesk-knowledge-base-home-page branch from 3c6a9ee to 9fde6aa Compare August 15, 2018 08:59
@ajesamson ajesamson merged commit b3827bb into staging Aug 15, 2018
@ajesamson ajesamson deleted the PCHR-4072-update-help-link-to-lead-to-freshdesk-knowledge-base-home-page branch August 15, 2018 11:51
davialexandre added a commit that referenced this pull request Sep 18, 2018
On #532, an upgrader was added to remove
"Vancacies" from the SSP menu. Originally, this upgrader number was 7036. Before this was merged to
staging, another PR (#536) was merged adding
an upgrader with the same number.

This caused a conflict which we tried to fix in 05cd2c6.
When fixing conflicts with upgrader coming from staging, the only correct approach is to change the upgrader in our PR to
a number higher than whatever we have on staging. The reason is that, if we pick a lower number the upgrader will never be executed.
Unfortunately, this is not what happened here. The upgrader was kept with the same name and the number of the one from
staging was increased to 7037.

Finally, #532 was kept open for quite a long time. In the meanwhile,
Another PR (#460) was merged to staging adding an upgrader with the number 7037. This time, git didn't
detect the conflict and after #532 was merged we ended up with two upgraders
with the same number.

To fix this we:
- Reverted the change in 05cd2c6 and renamed the upgrader that removes the old "Help" menu back to 7036
- Renamed the upgrader added by #532 to 7038 (one number higher than the latest we have on staging)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants