-
Notifications
You must be signed in to change notification settings - Fork 3
How to Add New Change Log Entries
Mike Pawlowski edited this page Jan 12, 2017
·
18 revisions
- 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
479 x 223pixels.- 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.
-
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" : "",
"date" : "",
"message" : "",
"image_url" : "",
"blog_url" : ""
}-
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
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/
- 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).
- 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.