Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
084c0f3
aps site specific modification
Oct 3, 2017
8a7ee8a
update itextpdf package
Oct 4, 2017
97cda41
bring all libraries up to date except eclipse link
Oct 4, 2017
3a3003c
bring eclipselink to version 2.6.5
Oct 4, 2017
4e2f0f2
solve compiling warning, and update deprecated API
Oct 4, 2017
e2775ab
modify it for APS naming system.
Oct 5, 2017
a9ab8d3
remove unneeded content
Oct 6, 2017
317e920
polish for APS release
Oct 10, 2017
07ed6d3
bring version consistent
Oct 11, 2017
935fb09
bug fix for RequestManager
Oct 12, 2017
5c7d29d
new file: data/patch-1.sql for modifying category names inside data…
Jan 30, 2020
619c553
Change name category id size to 32 in java code.
Feb 3, 2020
122f151
Hid the tables Rules & Examples on home page for now, needs to be rev…
Feb 10, 2020
498c280
Update fails on newer versions of mysql or MariaDB if foreign_key_che…
Feb 10, 2020
c4020c1
modified: data/patch-1.sql
Feb 24, 2020
7b454ad
new file: docs/Names-Active-Dir-Settings-APS.docx : Document on how…
Feb 27, 2020
80b0d4a
Corrected IT:EG1 to S:IT:EG1 in example-table.png.
May 4, 2020
0014d3d
Changed example table, APSU Lattice structure diagram.
Jun 22, 2020
30d49cb
redirect all http requests to https.
Jul 22, 2020
2be6f6a
Added patch-2.sql file to add category name Signal.
Jul 22, 2020
0d2157a
Changed apsu-format.png and example-table.png
Sep 21, 2020
404e71c
Create database before creating tables.
Sep 21, 2020
ecfdb73
Increased font and image size
Oct 15, 2020
b8c09c7
Set the root path for service as / instead of /names .
Oct 17, 2020
386214b
Updated version to 2.6.0
Oct 17, 2020
e09f553
Change app version and schema version in UI.
Oct 17, 2020
04fba65
Change browser tab icon for app to anl logo.
Oct 17, 2020
a06aba8
Home page update.
Mar 11, 2021
2f17126
Add deployment scripts for setting up dev env. Closes #1
iTerminate Oct 23, 2024
6b2d998
Merge branch 'develop' into 'master'
iTerminate Oct 23, 2024
eeda6d5
Update pom deps. Closes #2
iTerminate Oct 23, 2024
b21e695
Update code to match to be compliant with latest deps. Closes #2
iTerminate Oct 23, 2024
3e953a3
Add db backup and restore deployment scripts. Closes #1
iTerminate Oct 24, 2024
68c270a
Add deployment script to install supports. Closes #1
iTerminate Oct 24, 2024
0c61226
Update terminology. Closes #1
iTerminate Oct 24, 2024
ad5d28f
Remove uncecessary config.
iTerminate Oct 24, 2024
060c319
Add maradb client lib that needs to be installed when payara is insta…
iTerminate Oct 24, 2024
c7e1f09
Add script to handle SSL. Closes #1
iTerminate Oct 24, 2024
07d8b47
Add names deployment script. Closes #1
iTerminate Oct 24, 2024
1ec51dc
Update docs. Closes #1
iTerminate Oct 24, 2024
da48f74
Prepare release 2.7.0
iTerminate Oct 24, 2024
901aa78
Merge branch 'develop' into 'master'
iTerminate Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
TOP = .

default:

support:
$(TOP)/sbin/names_install_support.sh

configuration:
$(TOP)/sbin/names_create_configuration.sh

schema:
$(TOP)/sbin/names_create_db_schema.sh

backup:
$(TOP)/sbin/names_backup.sh

restore:
$(TOP)/sbin/names_restore.sh

payara-configure:
$(TOP)/sbin/names_payara_config_create.sh

payara-unconfigure:
$(TOP)/sbin/names_payara_config_remove.sh

deploy:
$(TOP)/sbin/names_deploy.sh
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

# DISCS Collaboration: Naming System Module

Description: A web-based system to manage naming convention of a particle accelerator facility.

### Contents:
- data: sample data
- design: design artifacts (SQL, MWB, Enterprise Architect files)
- docs: documentation
- src: source code
- sbin: support scripts and binaries
- etc: configuration

## Deployment

### Pre-requisistes

- mariadb
- conda

### Structure

- NAMES_INSTALL_DIR
- NAMES_DIST: Names distribution
- etc: Configuration
- support-`hostname -s`: support binaries such as java and payara.
- backup: db snapshots

### Instructions

The deployment can be driven by creating a well defined configuration file. This is done in the `make configuration` step below.

```sh
# Create a installation directory
mkdir $NAMES_INSTALL_DIR
cd $NAMES_INSTALL_DIR

## Download the names release/repo
# git clone ...
# wget names-release.tar.gz && unzip names-release.tar.gz
cd $NAMES_DIST
source setup.sh

# Create a configuration file for the deployment.
make configuration

# Install necessary support
make support

# Deploy schema
make schema

# Configure payara server
make payara-configure

# Deploy naming app
make deploy
```

### Update SSL certificate on payara

```sh
cd $NAMES_DIST

# Provide path to key and cert
./sbin/names_update_ssl.sh ../etc/ssl.key ../etc/ssl.cer
```
11 changes: 0 additions & 11 deletions README.txt

This file was deleted.

7 changes: 7 additions & 0 deletions Release-Notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Release Notes: Naming System Application

Overview: Naming System is for managing the FRIB Naming Convention.

Naming System Version 2.6.0 Date: 2020-Oct-16

Summary of Changes from Previous Version:
- Customised it for APS requirements
- Name categories are changed.
- Home page is changed.

Naming System Version 2.5.1 Date: 2015-Feb-19

Summary of Changes from Previous Version:
Expand Down
25 changes: 25 additions & 0 deletions data/patch-1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- This patch is to modify category names:

-- Increase size of column id in table name_category
ALTER TABLE name_category MODIFY id VARCHAR(32);

-- Increase size of column name_category_id in table name_event
ALTER TABLE name_event MODIFY name_category_id VARCHAR(32);

-- Disable foreign key checks otherwise update fails.
SET FOREIGN_KEY_CHECKS=0;

-- Make the modifications
update name_event set name_category_id="primary-machine" where name_category_id='system';
update name_category set id="primary-machine", name="Primary Machine/Sub-Area", description="Primary Machine/Sub-Area", version=0 where id='system';
update name_event set name_category_id="system" where name_category_id='subsystem';
update name_category set id="system", name="System", description="System", version=0 where id='subsystem';

-- Delete category names only if there is no relative name event present.
delete from name_category where id='signal-type' and not exists(select 1 from name_event where name_category_id='signal-type');
delete from name_category where id='signal-suffix' and not exists(select 1 from name_event where name_category_id='signal-suffix');
delete from name_category where id='signal-domain' and not exists(select 1 from name_event where name_category_id='signal-domain');

-- Enable foreign key checks again
SET FOREIGN_KEY_CHECKS=1;

5 changes: 5 additions & 0 deletions data/patch-2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- This patch is to modify category names:

-- Make the modifications
-- Add a category name Signal
insert into name_category (id, name, description, version) values ("signal", "Signal", "Signal", 0);
77 changes: 77 additions & 0 deletions data/sample-data-v2.4.sql

Large diffs are not rendered by default.

94 changes: 94 additions & 0 deletions design/names_schema_v2.4.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
-- --------------------------------------------------
-- Generated by Enterprise Architect Version 9.2.921
-- Created On : Thursday, 25 July, 2013
-- DBMS : MySql
-- --------------------------------------------------

-- Create database
CREATE DATABASE DISCS_NAMING;
USE DISCS_NAMING;

SET FOREIGN_KEY_CHECKS=0;

-- Drop Tables, Stored Procedures and Views

DROP TABLE IF EXISTS configuration CASCADE;
DROP TABLE IF EXISTS name_category CASCADE;
DROP TABLE IF EXISTS name_event CASCADE;
DROP TABLE IF EXISTS name_release CASCADE;
DROP TABLE IF EXISTS privilege CASCADE;

-- Create Tables
CREATE TABLE configuration
(
name VARCHAR(64) NOT NULL,
value VARCHAR(255),
PRIMARY KEY (name)

) ENGINE=InnoDB COMMENT='Each row is a module property';


CREATE TABLE name_category
(
id VARCHAR(32) NOT NULL,
name VARCHAR(32) NOT NULL,
description VARCHAR(255),
version INTEGER NOT NULL,
PRIMARY KEY (id)

) ENGINE=InnoDB COMMENT='Each row is a naming category';


CREATE TABLE name_event
(
id INTEGER NOT NULL AUTO_INCREMENT,
name_id VARCHAR(64) NOT NULL,
event_type CHAR(1) NOT NULL,
requested_by VARCHAR(64) NOT NULL,
requestor_comment VARCHAR(255) NOT NULL,
request_date DATETIME NOT NULL,
status CHAR(1) NOT NULL,
processed_by VARCHAR(64),
processor_comment VARCHAR(255),
process_date DATETIME,
name_category_id VARCHAR(32),
name_code VARCHAR(16),
name_description VARCHAR(255),
version INTEGER NOT NULL,
PRIMARY KEY (id),
KEY (name_category_id)

) ENGINE=InnoDB COMMENT='Each row is an event in a name''s lifecycle';


CREATE TABLE name_release
(
id VARCHAR(16) NOT NULL,
description VARCHAR(255) NOT NULL,
doc_url VARCHAR(255),
release_date DATETIME NOT NULL,
released_by VARCHAR(64) NOT NULL,
version INTEGER NOT NULL,
PRIMARY KEY (id)

) ENGINE=InnoDB COMMENT='Each row is a naming system release';


CREATE TABLE privilege
(
userid VARCHAR(64) NOT NULL,
operation VARCHAR(1) NOT NULL,
version INTEGER NOT NULL,
PRIMARY KEY (userid)

) ENGINE=InnoDB;



SET FOREIGN_KEY_CHECKS=1;


-- Create Foreign Key Constraints
ALTER TABLE name_event ADD CONSTRAINT FK_name_event_name_category
FOREIGN KEY (name_category_id) REFERENCES name_category (id)
ON DELETE RESTRICT ON UPDATE CASCADE;
Binary file added docs/Names-Active-Dir-Settings-APS.docx
Binary file not shown.
Binary file added docs/Names-Active-Dir-Settings-APS.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions etc/names.config.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NAMES_DB_NAME=naming
NAMES_DB_USER=naming
NAMES_DB_PASSWORD_FILE=
NAMES_DB_HOST=127.0.0.1
NAMES_DB_PORT=3306
NAMES_DB_ADMIN_USER=root
NAMES_DB_ADMIN_HOSTS="127.0.0.1"
NAMES_DB_CHARACTER_SET=utf8
NAMES_CONTEXT_ROOT=/
2 changes: 1 addition & 1 deletion nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Any value defined here will override the pom.xml file value but is only applicab
<org-netbeans-modules-css-prep.sass_2e_enabled>false</org-netbeans-modules-css-prep.sass_2e_enabled>
<org-netbeans-modules-css-prep.less_2e_compiler_2e_options/>
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>gfv3ee6</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>pfv5ee8</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
</properties>
</project-shared-configuration>
Loading