-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: develop
Are you sure you want to change the base?
story/VSPC-217 #351
Conversation
…ace content block
…aces-2.0 into story/vspc-171
…t not in the branch
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
} | ||
|
||
@Override | ||
public List<ISpace> getAllSpacesPaginated(int page, int pageSize) { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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|}]], |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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|}]], |
There was a problem hiding this comment.
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)
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]
).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