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

DDINGI-1306: Revised Data Paging/Totals #426

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

Ramky-Infoblox
Copy link
Contributor

DDINGI-1306: Revised Data Paging/Totals

Enhancement to the existing pagination with resultset count with enable/disable count feature.

Comment on lines 205 to 207
//The bool value enables/disables the record count.
//The default setting disables the record count.
bool is_total_size = 4;
Copy link
Contributor

@chinmayb chinmayb Nov 14, 2024

Choose a reason for hiding this comment

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

How about this ? cc @pnagaraj80

Suggested change
//The bool value enables/disables the record count.
//The default setting disables the record count.
bool is_total_size = 4;
// The bool value enables/disables the record count.
// The default setting disables the record count.
bool is_total_size_required = 4;

Copy link
Contributor Author

@Ramky-Infoblox Ramky-Infoblox Nov 14, 2024

Choose a reason for hiding this comment

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

@chinmayb - This is not a required field. since we are using 'total_size' in PageInfo it better to keep 'is_total_size' here as well.
As comment says it is just to enable or disable the record count.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for comment space will modify it

Copy link
Contributor

@chinmayb chinmayb Nov 14, 2024

Choose a reason for hiding this comment

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

the user is requesting the total count or not, hence I was asking that way. It doesn't indicate that its a required field or anything. More like

bool is_total_size_needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

Comment on lines 226 to 227
//Resultset record count.
int64 total_size = 4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
//Resultset record count.
int64 total_size = 4;
// total_size indicates the total records present.
int64 total_size = 4;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure will modify

@Ramky-Infoblox Ramky-Infoblox merged commit 312c3dd into infobloxopen:v0.25-pages Nov 14, 2024
2 checks passed
@Ramky-Infoblox Ramky-Infoblox deleted the ddi-pages branch November 14, 2024 07:30
Ramky-Infoblox added a commit to Ramky-Infoblox/atlas-app-toolkit that referenced this pull request Dec 3, 2024
* DDINGI-1306: Revised Data Paging/Totals

* dependent files

* comments indentation
Ramky-Infoblox added a commit that referenced this pull request Dec 4, 2024
* DDINGI-1306: Revised Data Paging/Totals (#426)

* DDINGI-1306: Revised Data Paging/Totals

* dependent files

* comments indentation

* added prefix '_' to total_size_needed (#427)

* added prefix '_' to total_size_needed

* fixed lint error

* fmt fix
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.

2 participants