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

Description column width update on pagination #463

Merged
merged 9 commits into from
Aug 22, 2024
44 changes: 12 additions & 32 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,14 +425,13 @@ const putData = async data => {
};
}; */

/*
* Function to load POC data
* every Monday at 07:00 Eastern Time
*/

// -------------------------------------------------------------------------------------------------
// Function to load POC data every Wednesday at 5:00 AM ET from the csv file in scripts/pocs
const fastcsv = require("fast-csv");
const { consoleTestResultHandler } = require('tslint/lib/test.js');

cron.schedule('0 7 * * WED', () => {
cron.schedule(process.env.POC_CRON, () => { //PRODUCTION
let stream = fs.createReadStream("scripts/pocs/GSA_Pocs.csv");
let pocCsv = [];
let csvStream = fastcsv
Expand Down Expand Up @@ -507,45 +506,26 @@ cron.schedule('0 7 * * WED', () => {
});

// -------------------------------------------------------------------------------------------------
// CRON JOB: Google Sheets API - Update All Related Records (runs every weekday at 6:00 AM & 6:00 PM)
cron.schedule('0 6,18 * * 1-5', () => { //PRODUCTION
// CRON JOB: Google Sheets API - Update All Related Records (runs every weekday at 11:00 PM)
cron.schedule(process.env.RECORDS_CRON, () => {
//cron.schedule('50 14 * * 1-5', () => { //DEBUGGING

cronCtrl.runUpdateAllRelatedRecordsJob();

});

// -------------------------------------------------------------------------------------------------
// CRON JOB: Tech Catalog Daily Import
/*
// -------------------------------------------------
// OPTION #1: Original, 1 job (runs EVERYDAY at 12:01 AM)
cron.schedule('1 0 * * *', () => { //PRODUCTION
cronCtrl.runTechCatalogImportJob();
});
*/

// -------------------------------------------------
// OPTION #2: Weekday Mornings + Sunday Afternoon
// (runs WEEKDAYS at 12:01 AM)
cron.schedule('1 0 * * 1-5', () => { //PRODUCTION
// (runs DAILY at 12:01 AM)
cron.schedule(process.env.TECH_CATALOG_CRON1, () => {
cronCtrl.runTechCatalogImportJob();
});

// (runs SUNDAY AFTERNOON at 2:01 PM)
cron.schedule('1 14 * * 0', () => { //PRODUCTION
cron.schedule(process.env.TECH_CATALOG_CRON2, () => {
cronCtrl.runTechCatalogImportJob();
});
// -------------------------------------------------------------------------------------------------

// (runs Touch point import at 6:03 AM)
cron.schedule('3 6 * * *', () => { //PRODUCTION
// CRON JOB: Touchpoints API - Update Websites (runs every day at 11:05 PM)
cron.schedule(process.env.TOUCHPOINTS_CRON, () => {
cronCtrl.runTouchpointImportJob();
});


/*
// (runs SATURDAY + SUNDAY AFTERNOON at 2:01 PM)
cron.schedule('1 14 * * 6-0', () => { //PRODUCTION
cronCtrl.runTechCatalogImportJob();
});
*/
2 changes: 1 addition & 1 deletion src/app/views/systems/websites/websites.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class WebsitesComponent implements OnInit {
$('#websitesTable').bootstrapTable('filterBy', {
production_status: ['production'],
type_of_site: ['Informational', 'Application', 'Application Login'],
digital_brand_category: ['GSA Business', 'Hybrid'],
digital_brand_category: ['GSA Business', 'Hybrid', ''],
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ItStandardsComponent implements OnInit {
tableOptions: {} = this.tableService.createTableOptions({
advancedSearch: true,
idTable: 'ITStandardTable',
classes: 'table-hover table-dark clickable-table',
classes: 'table-hover table-dark clickable-table fixed-table',
showColumns: true,
showExport: true,
exportFileName: 'GSA_IT_Standards',
Expand Down Expand Up @@ -146,6 +146,7 @@ export class ItStandardsComponent implements OnInit {
title: 'Description',
sortable: true,
visible: true,
class: 'wid-25',
formatter: this.sharedService.formatDescription,
titleTooltip: this.getTooltip('Description')
}, {
Expand Down
4 changes: 4 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,4 +317,8 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
.fixed-table-toolbar .search {
padding-right: 3%;
min-width: 30%;
}

.wid-25 {
width: 25% !important;
}
Loading