-
Notifications
You must be signed in to change notification settings - Fork 3
How to Add New Change Log Entries
nickmazzi edited this page Nov 27, 2017
·
18 revisions
- Note: Before you create a What's New entry, it must be reviewed by the Marketing department. The current contact for this is Erin Lehr (edlehr@us.ibm.com).
- About the Change Log Feature
- Applicable to the
image_urlfield. - Format should be Portable Network Graphics (
PNG) - File extension should be lower-case
- e.g.
*.png
- e.g.
- Image resolution should be exactly
958 x 446pixels.- The thumbnail preview image will be scaled down to exactly
479 x 223. - Note: This requirement is too strict.
- Width should be ~
480pixels and the height natural (flexible). - TODO: Need to discuss with Design and DEV teams to rectify in the UI.
- The thumbnail preview image will be scaled down to exactly
-
Important: Images should be uploaded to this GitHub repository instead of cross-linking to another site we do not control to avoid broken links / images.
- i.e. Add image to local GitHub repository.
- Add image to 3 locations:
- (1)
datascix/public/dev/changelog/img - (2)
datascix/public/qa/changelog/img - (3)
datascix/public/prod/changelog/img
- (1)
- Each location corresponds to a DevOps deployment environment for the DSX site.
- For more details, see: About the Change Log Feature
- i.e. Commit image to remote GitHub repository.
-
Important: Do NOT upload any changes related to the JSON Change Log files yet (i.e.entries.json). - Note: This step seems premature / counter-intuitive; but, is required to validate whether the image URLs resolve correctly via the automated validation script.
- i.e. public/dev/changelog/entries.json
- Stub entry template:
{
"title" : "",
"id" : "",
"author" : "",
"author_image_url" : "",
"date" : "",
"message" : "",
"image_url" : "",
"blog_url" : ""
}-
Recommended: Add the new entry to the beginning of the file (i.e. first entry) in order to arrange the entries in reverse chronological order (to mirror how the entries are presented in theDSX What's New Page). -
Important: Do not leave a trailing comma (,) if adding the entry to the end of the file.
- Applicable to the
titlefield.
- Applicable to the
idfield. - The ID must be a valid Globally Unique Identifier (GUID).
- Go to Online GUID Generator
- Click the "Generate some GUIDS!" button.
- Copy the GUID value and use it for the ID value.
- e.g.
cd299019-2223-4aa3-a8a8-779b1b36b12a
- e.g.
- Applicable to the
authorfield.
- Applicable to the
author_image_urlfield. - Use the URL to an author's user profile image already uploaded to GitHub.
- i.e.
https://github.com/IBMDataScience/datascix/blob/master/public/dev/changelog/img/author_armand.jpg?raw=true -
Important: Make sure to refer to the correct image path.- i.e. In this case
public/dev
- i.e. In this case
-
Important: Remember to add the?raw=truequery parameter to the end of the URL. -
Important: Always use secure (HTTPS) image URLs.
- Applicable to the
datefield. - The date format must be in UTC and conform to ISO 8601.
- e.g.
2016-08-15T08:06:05.524Z
- Applicable to the
messagefield.
- Applicable to the
image_urlfield. - Use the URL to the image you uploaded to GitHub in step
(4) Upload Images for Change Log Entry. - i.e.
https://github.com/IBMDataScience/datascix/blob/master/public/dev/changelog/img/projectTabs.png?raw=true -
Important: Make sure to refer to the correct image path.- i.e. In this case
public/dev
- i.e. In this case
-
Important: Remember to add the?raw=truequery parameter to the end of the URL. -
Important: Always use secure (HTTPS) image URLs.- Otherwise, users will encounter security-related web browser exceptions when loading the DSX Change Log / What's New page.
- e.g. Loading mixed (insecure) display content "http://datascience.ibm.com/blog/content/images/2016/08/wRdxWjmL4w.gif" on a secure page.
- Applicable to the
blog_urlfield. - Blog entries are sourced from
http://datascience.ibm.com/blog. - e.g.
http://datascience.ibm.com/blog/upload-data-and-create-data-frames-in-jupyter-notebooks/
- Applicable to the audience field (an array which lists the relevant audience for this blog post)
- A single pair of square brackets must surround the entire set of values for this field
- If the array is left empty, it is assumed that the blog post is targeted toward all offerings (WDP wide)
- valid values for offerings include:
- “data_science_experience”
- “data_refinery”
- “data_catalog”
- Separate offerings by commas
- Change to the
datascixdirectory (root of local GitHub repository):
$ cd datascix- Validate the JSON syntax:
$ grunt jsonlint- Fix reported errors (if any).
-
Important: Ensure that you have already uploaded the images for the Change Log entry in Step (4). - Validate the JSON content:
$ grunt urlValidate:dev- Fix reported errors (if any).
-
Recommended: Use a visual file comparison and difference (diff) tool to manually review your changes to the JSON file with the previous version / commit.
- i.e. Commit file to remote GitHub repository.
- i.e. public/dev/changelog/entries.json
- Go to the DSX What's New Page in the development environment.
- Visually verify the new Change Log entry.
- Copy the new
YS1 DEVChange Log entry to theYP QAJSON Change Log file. - i.e. public/qa/changelog/entries.json
-
Important: Replace the/dev/path segment with/qa/in theimage_urlproperty field value.
- Validate the JSON syntax:
$ grunt jsonlint- Fix reported errors (if any).
-
Important: Ensure that you have already uploaded the images for the Change Log entry in Step (4). - Validate the JSON content:
$ grunt urlValidate:qa- Fix reported errors (if any).
-
Recommended: Use a visual file comparison and difference (diff) tool to manually review your changes to the JSON file with the previous version / commit.
- i.e. Commit file to remote GitHub repository.
- i.e. public/qa/changelog/entries.json
- Go to the DSX What's New Page in the test (quality assurance) environment.
- Visually verify the new Change Log entry.
- Copy the new
YS1 DEVChange Log entry to theYP PRODJSON Change Log file. - i.e. public/prod/changelog/entries.json
-
Important: Replace the/dev/path segment with/prod/in theimage_urlproperty field value.
- Validate the JSON syntax:
$ grunt jsonlint- Fix reported errors (if any).
-
Important: Ensure that you have already uploaded the images for the Change Log entry in Step (4). - Validate the JSON content:
$ grunt urlValidate:prod- Fix reported errors (if any).
-
Recommended: Use a visual file comparison and difference (diff) tool to manually review your changes to the JSON file with the previous version / commit.
- i.e. Commit file to remote GitHub repository.
- i.e. public/prod/changelog/entries.json
- Go to the DSX What's New Page in the production environment.
- Visually verify the new Change Log entry.