- 
                Notifications
    You must be signed in to change notification settings 
- Fork 81
add a feature that flattens custom result index when enabled #1401
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
add a feature that flattens custom result index when enabled #1401
Conversation
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
dc1c604    to
    9f0dcf6      
    Compare
  
    d0d60f0    to
    352075b      
    Compare
  
    c947793    to
    bf552b5      
    Compare
  
    bf552b5    to
    9fced72      
    Compare
  
    | resolved | 
        
          
                src/main/java/org/opensearch/ad/settings/AnomalyDetectorSettings.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/indices/IndexManagement.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/ad/transport/ADResultBulkTransportAction.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/indices/IndexManagement.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/test/java/org/opensearch/ad/rest/AnomalyDetectorRestApiIT.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      2fd6bc2    to
    8b12fd7      
    Compare
  
    Signed-off-by: Jackie Han <hnyng@amazon.com>
8b12fd7    to
    3ce0734      
    Compare
  
    ad3d99c    to
    c844922      
    Compare
  
    | bwc test failure is similar to opensearch-project/OpenSearch#15234  | 
        
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Jackie Han <hnyng@amazon.com>
        
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Jackie Han <hnyng@amazon.com>
        
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/test/java/org/opensearch/ad/rest/AnomalyDetectorRestApiIT.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …ult index Signed-off-by: Jackie Han <hnyng@amazon.com>
        
          
                src/main/java/org/opensearch/timeseries/indices/IndexManagement.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/ad/transport/ADResultBulkTransportAction.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Jackie Han <hnyng@amazon.com>
590fb5a    to
    d557c50      
    Compare
  
    Signed-off-by: Jackie Han <hnyng@amazon.com>
        
          
                src/main/java/org/opensearch/timeseries/indices/IndexManagement.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/main/java/org/opensearch/timeseries/rest/handler/AbstractTimeSeriesActionHandler.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: Jackie Han <hnyng@amazon.com>
e33ff46
      into
      
  
    opensearch-project:main
  
    | The backport to  To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/anomaly-detection/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/anomaly-detection/backport-2.x
# Create a new branch
git switch --create backport/backport-1401-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e33ff46cd1e6d8c0607708f139b1424a612360c7
# Push it to GitHub
git push --set-upstream origin backport/backport-1401-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/anomaly-detection/backport-2.xThen, create a pull request where the  | 
…rch-project#1401) * add a feature that flattens custom result index when enabled Signed-off-by: Jackie Han <jkhanjob@gmail.com> * clean up Signed-off-by: Jackie Han <jkhanjob@gmail.com> * add IT Signed-off-by: Jackie Han <hnyng@amazon.com> * cleanup Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * update IT Signed-off-by: Jackie Han <hnyng@amazon.com> * update IT Signed-off-by: Jackie Han <hnyng@amazon.com> * clean up Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * utlizing a node state manager when writing results into flattened result index Signed-off-by: Jackie Han <hnyng@amazon.com> * build flatten resuilt index enabled into the ResultWriteRequest Signed-off-by: Jackie Han <hnyng@amazon.com> * unbind ingest pipeline with flattened result index when it's disabled Signed-off-by: Jackie Han <hnyng@amazon.com> * test * address comments * cleanup Signed-off-by: Jackie Han <hnyng@amazon.com> * make flatten result index use detector name Signed-off-by: Jackie Han <hnyng@amazon.com> --------- Signed-off-by: Jackie Han <jkhanjob@gmail.com> Signed-off-by: Jackie Han <hnyng@amazon.com>
…nabled (#1401) (#1405) * add a feature that flattens custom result index when enabled (#1401) * add a feature that flattens custom result index when enabled Signed-off-by: Jackie Han <jkhanjob@gmail.com> * clean up Signed-off-by: Jackie Han <jkhanjob@gmail.com> * add IT Signed-off-by: Jackie Han <hnyng@amazon.com> * cleanup Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * update IT Signed-off-by: Jackie Han <hnyng@amazon.com> * update IT Signed-off-by: Jackie Han <hnyng@amazon.com> * clean up Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * add more IT Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * address comments Signed-off-by: Jackie Han <hnyng@amazon.com> * utlizing a node state manager when writing results into flattened result index Signed-off-by: Jackie Han <hnyng@amazon.com> * build flatten resuilt index enabled into the ResultWriteRequest Signed-off-by: Jackie Han <hnyng@amazon.com> * unbind ingest pipeline with flattened result index when it's disabled Signed-off-by: Jackie Han <hnyng@amazon.com> * test * address comments * cleanup Signed-off-by: Jackie Han <hnyng@amazon.com> * make flatten result index use detector name Signed-off-by: Jackie Han <hnyng@amazon.com> --------- Signed-off-by: Jackie Han <jkhanjob@gmail.com> Signed-off-by: Jackie Han <hnyng@amazon.com> * spotless apply Signed-off-by: Jackie Han <hnyng@amazon.com> * update recency_emphasis to be greater than 1 in test cases Signed-off-by: Jackie Han <hnyng@amazon.com> --------- Signed-off-by: Jackie Han <jkhanjob@gmail.com> Signed-off-by: Jackie Han <hnyng@amazon.com>
Description
wip - sending implementation out first.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.