aierate commented on PR #5983: URL: https://github.com/apache/ozone/pull/5983#issuecomment-2056450558
> Thank you for addressing this, @aierate. Could you provide further clarification on the issue you're encountering? Are you attempting to implement a search functionality for the **`Node Status`** table, or are you resolving an existing issue with it? > > The logic for handling the search in this table is present in the `scm-overview.html` file at :- > > https://github.com/apache/ozone/blob/74f04a732809fb19366e490f79a6b4c0e40ce44c/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html#L64 > > ### How it works :- > When the user types something into the search input, AngularJS updates the value of `$scope.search`. The filter:search part of the ng-repeat directive then filters the items in the nodeStatus array based on the value of `$scope.search`, showing only those items that match the search criteria. The items are then displayed in the table row () according to the filtering applied. > > I checked it with the upsteream master build and the search works fine. <img alt="image" width="1635" src="https://private-user-images.githubusercontent.com/98023601/316233509-b27f4598-8913-4247-912a-6afc333d80ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTMxNzUzMjYsIm5iZiI6MTcxMzE3NTAyNiwicGF0aCI6Ii85ODAyMzYwMS8zMTYyMzM1MDktYjI3ZjQ1OTgtODkxMy00MjQ3LTkxMmEtNmFmYzMzM2Q4MGNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDE1VDA5NTcwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1YTYyMWQzNjUyZWQ2NDBhMjllNzgzYjliYmQ4YjYxNjcyMTcwZTdkNjFhMzFiYzhmYzY4ZjNlMTI0M2FhZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QSP9JGkCY1hR6stK2SdIzessRbNyo5QizCxZW5rdHgA"> Thanks @ArafatKhan2198 . When the number of DataNodes exceeds one page, if you search for DataNodes on the second page, the search results will be displayed on the second page. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
