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

story/VSPC-217 #351

Open
wants to merge 149 commits into
base: develop
Choose a base branch
from
Open

story/VSPC-217 #351

wants to merge 149 commits into from

Conversation

ajay3568yadav
Copy link
Contributor

Guidelines for Pull Requests

If you haven't yet read our code review guidelines, please do so, You can find them here.

Please confirm the following by adding an x for each item (turn [ ] into [x]).

  • I have removed all code style changes that are not necessary (e.g. changing blanks across the whole file that don’t need to be changed, adding empty lines in parts other than your own code)
  • I am not making any changes to files that don’t have any effect (e.g. imports added that don’t need to be added)
  • I do not have any sysout statements in my code or commented out code that isn’t needed anymore
  • I am not reformatting any files in the wrong format or without cause.
  • I am not changing file encoding or line endings to something else than UTF-8, LF
  • My pull request does not show an insane amount of files being changed although my ticket only requires a few files being changed
  • I have added Javadoc/documentation where appropriate
  • I have added test cases where appropriate
  • I have explained any part of my code/implementation decisions that is not be self-explanatory

Please provide a brief description of your ticket

(you can copy the ticket if it hasn't changed)

Space blocks for slides: The dropdown to select a space for space blocks should be infinite scroll

Anything else the reviewer needs to know?

https://diging.atlassian.net/browse/VSPC-217

@diging-jenkins
Copy link

Can one of the admins verify this patch?

1 similar comment
@diging-jenkins
Copy link

Can one of the admins verify this patch?

}

@Override
public List<ISpace> getAllSpacesPaginated(int page, int pageSize) {
Copy link
Member

Choose a reason for hiding this comment

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

should be next to getAllSpaces

if (search != null && !search.trim().isEmpty()) {
spaces = spaceManager.findByName(search);
spaces = spaceManager.findByNamePaginated(search, page, PAGE_SIZE);
hasMore = spaces.size() == PAGE_SIZE;
Copy link
Member

Choose a reason for hiding this comment

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

That's not necessarily true, is it? If each page has 10 entries (10 being the number of items on a page), then this would yield true for every page if there are 100 items, even the last one, wouldn't it?

dataType: 'json',
success: function(result) {
console.log("results")
console.log(result)
Copy link
Member

Choose a reason for hiding this comment

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

remove

const space = items[i];
if (space.id === spaceId) {
spaceName = space.name;
console.log(spaceName)
Copy link
Member

Choose a reason for hiding this comment

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

remove

@@ -1179,6 +1209,62 @@
});
});

function getSpaceById(spaceId, callback) {
$.ajax({
url: [[@{|/staff/spaces/search|}]],
Copy link
Member

Choose a reason for hiding this comment

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

if you have the space id, you should not have to search spaces. You should get the space by its id.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I'ld still have to make an API call do I?


function getCurrentSpace(blockId) {
$.ajax({
url: [[@{|/staff/spaces/search|}]],
Copy link
Member

Choose a reason for hiding this comment

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

same here (get by space id)

@jdamerow jdamerow closed this Jan 9, 2025
@ajay3568yadav ajay3568yadav reopened this Jan 24, 2025
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.

6 participants