Skip to content

NIFI-6586 - Code comments and doc updates#3671

Closed
YolandaMDavis wants to merge 1 commit intoapache:analytics-frameworkfrom
YolandaMDavis:NIFI-6586
Closed

NIFI-6586 - Code comments and doc updates#3671
YolandaMDavis wants to merge 1 commit intoapache:analytics-frameworkfrom
YolandaMDavis:NIFI-6586

Conversation

@YolandaMDavis
Copy link
Contributor

Posting as a draft because for some reason the Admin Guide updates aren't showing as expected. @mattyb149 or @achristianson if you can help identify what I am missing?

Thank you for submitting a contribution to Apache NiFi.

Please provide a short description of the PR here:

Description of PR

Enables X functionality; fixes bug NIFI-YYYY.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • Have you written or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
  • If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
  • If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.


/**
* Get available predictions
* @return map
Copy link
Contributor

Choose a reason for hiding this comment

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

We should note what the keys/values are/mean.

Copy link
Contributor

Choose a reason for hiding this comment

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

I.e. what is the string, what is the long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@achristianson thanks for the feedback, I've made changes to clarify this


/**
* <p>
* An implementation of {@link StatusAnalyticsEngine} that supports caching of ConnectionStatusAnalytics objects
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to go in some detail about caching policy, as well as the nature of the cache (in-memory, size, etc.).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, have added info

Copy link
Contributor

@ai-christianson ai-christianson left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to put together good code documentation. Nothing stuck out which would be a blocker, but I left a couple notes on things that we could potentially expound.

@YolandaMDavis YolandaMDavis marked this pull request as ready for review August 27, 2019 15:38
@YolandaMDavis
Copy link
Contributor Author

@achristianson I made a few more changes to include some detail on the framework in the user and admin guides. Also I figured out my issue with seeing docs updated locally so I moved this PR out of draft mode.

@asfgit asfgit force-pushed the analytics-framework branch from e9986c2 to dbbd41b Compare August 27, 2019 16:42
@ai-christianson
Copy link
Contributor

@YolandaMDavis I rebased analytics-framework branch onto master and now it is reporting conflicts. Once those are resolved I can merge into the branch.

@YolandaMDavis
Copy link
Contributor Author

@achristianson merged this request so closing PR manually


Hovering over the queue will also reveal predicted statistics on when the queue may encounter back pressure, either due to the object count or content size meeting the current threshold
settings. Predictions will only be available when NiFi has enough data in it's internal repository and if it's model is accurate enough to broadcast a prediction.

Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if they aren't available? Will it tell you? Can you tell the difference between not enough data and not configured?

Copy link
Contributor Author

@YolandaMDavis YolandaMDavis Aug 30, 2019

Choose a reason for hiding this comment

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

@ottobackwards thanks for this question, it prompted us to ensure we add enabled/disabled property for the new features (commit has been added to the PR against master #3681. UI changes are pending (did ask @rfellows offline) but in short tooltip will distinguish when predictions are enabled yet not available vs when predictions are not enabled.

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.

3 participants