Skip to content
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

Alert define export tags combine #1506

Merged
merged 3 commits into from
Jan 21, 2024
Merged

Alert define export tags combine #1506

merged 3 commits into from
Jan 21, 2024

Conversation

yqxxgh
Copy link
Contributor

@yqxxgh yqxxgh commented Jan 20, 2024

What's changed?

Alert define export tags combine

Checklist

  • I hereby agree to the terms of the HertzBeat CLA
  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@yqxxgh yqxxgh added the enhancement New feature or request label Jan 20, 2024
@yqxxgh yqxxgh added this to the 1.4.5 milestone Jan 20, 2024
@yqxxgh yqxxgh self-assigned this Jan 20, 2024
Comment on lines 82 to 102
// List<List<TagItem>> tagsList = new ArrayList<>();
// for (int i = 0; i < startRowList.size(); i++) {
// int startRowIndex = startRowList.get(i);
// int endRowIndex = (i + 1 < startRowList.size() ? startRowList.get(i + 1) : sheet.getLastRowNum() + 1);
// List<TagItem> tags = new ArrayList<>();
//
// for (int j = startRowIndex; j < endRowIndex; j++) {
// Row row = sheet.getRow(j);
// if (row == null) {
// continue;
// }
// TagItem tagItem = extractTagDataFromRow(row);
// if (tagItem != null) {
// tags.add(tagItem);
// }
// }
// tagsList.add(tags);
// }
// for (int i = 0; i < alertDefines.size(); i++) {
// alertDefines.get(i).getAlertDefine().setTags(tagsList.get(i));
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

we can delete the unused code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

@a-little-fool a-little-fool left a comment

Choose a reason for hiding this comment

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

LGTM!

@a-little-fool a-little-fool merged commit 6fa00c3 into master Jan 21, 2024
2 checks passed
@yqxxgh yqxxgh deleted the alert-tag-export branch January 21, 2024 11:09
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request good first pull request Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants