Skip to content

DM-4591: GWT conversion: System notifications #106

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

Merged
merged 2 commits into from
Jun 17, 2016

Conversation

loitly
Copy link
Contributor

@loitly loitly commented Jun 17, 2016

ticket: https://jira.lsstcorp.org/browse/DM-4591

to test:
rebuild firefly. restart tomcat.
http://localhost:8080/firefly/
mkdir -p /hydra/alerts/
echo 'some message you want users to see' > /hydra/alerts/notice.txt
within 10 seconds, you should see the notice appears on the drop down menu.
remove the file, and it'll go away.

private static final Logger.LoggerImpl LOG = Logger.getLogger();
private static final String ALERTS_DIR = AppProperties.getProperty("alerts.dir", "/hydra/alerts/");
private static final File alertDir = new File(ALERTS_DIR);
private static Alert alerts = new Alert(null, "", true);;
Copy link
Contributor

Choose a reason for hiding this comment

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

extra semicolon

@tgoldina
Copy link
Contributor

Looks good, though modifying the existing notice does not work.

Test sequence:
echo 'something' > /hydra/alerts/notice.txt
wait for message to show up
echo 'something else' > /hydra/alerts/notice.txt

The updated message never shows up.

@loitly loitly merged commit bff9b02 into dev Jun 17, 2016
@loitly loitly deleted the DM-4591_system_notification branch June 17, 2016 22:16
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