File tree 2 files changed +4
-18
lines changed
server/src/main/java/org/opensearch
2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import org .opensearch .action .ActionRequestValidationException ;
12
12
import org .opensearch .cluster .metadata .View ;
13
- import org .opensearch .common .at org .opensearch .core .common .io .stream .StreamInput ;
13
+ import org .opensearch .common .annotation .ExperimentalApi ;
14
+ import org .opensearch .core .common .io .stream .StreamInput ;
14
15
import org .opensearch .core .common .io .stream .StreamOutput ;
15
- import org .opensearch .rest .action .admin .indicport java .util .Map ;
16
+ import java .io .IOException ;
17
+ import java .util .Map ;
16
18
import java .util .Objects ;
17
19
import java .util .function .Function ;
18
20
@@ -57,7 +59,6 @@ public void writeTo(final StreamOutput out) throws IOException {
57
59
58
60
@ Override
59
61
public boolean equals (final Object o ) {
60
- // TODO: Maybe this isn't standard practice
61
62
return this .hashCode () == o .hashCode ();
62
63
}
63
64
@@ -70,9 +71,4 @@ public int hashCode() {
70
71
public String toString () {
71
72
return super .toString ().replace ("SearchRequest{" , "ViewSearchRequest{view=" + view + "," );
72
73
}
73
-
74
- @ Override
75
- public Map <String , String > getResourceTypeAndIds () {
76
- return Map .of (RestViewAction .VIEW_ID , view .name );
77
- }
78
74
}
Original file line number Diff line number Diff line change 29
29
30
30
import static org .opensearch .cluster .metadata .ComposableIndexTemplateMetadata .MINIMMAL_SUPPORTED_VERSION ;
31
31
32
- /**
33
- * TODO: Tests with failures? `./gradlew :server:test`
34
-
35
- - org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteIOException
36
- - org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsDeleteDedup
37
- - org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDeleteNoSuchFileException
38
- - org.opensearch.index.store.RemoteSegmentStoreDirectoryTests.testDeleteStaleCommitsActualDelete
39
- *
40
- */
41
-
42
32
public class ViewMetadata implements Metadata .Custom {
43
33
44
34
public static final String TYPE = "view" ;
You can’t perform that action at this time.
0 commit comments