-
Notifications
You must be signed in to change notification settings - Fork 101
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
PoC new inventory table #7422
base: features/inventory-table-revamp
Are you sure you want to change the base?
PoC new inventory table #7422
Conversation
@@ -591,6 +603,7 @@ var MyModuleRepositories = (function() { | |||
}); | |||
|
|||
FULL_VIEW_MODAL.on('hidden.bs.modal', function() { | |||
return |
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.
Missing semicolon semi
@@ -448,7 +460,7 @@ var MyModuleRepositories = (function() { | |||
repositoryTable.attr('data-version-label', $(this).data('footer-label')); | |||
repositoryTable.attr('data-name-column-id', $(this).data('name-column-id')); | |||
repositoryTable.attr('data-stock-management', $(this).data('data-stock-management')); | |||
repositoryContainer.html(repositoryTable); | |||
//repositoryContainer.html(repositoryTable); |
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.
Expected space or tab after '//' in comment spaced-comment
); | ||
updateFullViewRowsCount(tableContainer.attr('data-assigned-items-count')); | ||
window.mountRepositoryTable(); | ||
return |
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.
Missing semicolon semi
@@ -210,6 +210,9 @@ var MyModuleRepositories = (function() { | |||
} | |||
|
|||
function renderSimpleTable(tableContainer) { | |||
console.log(tableContainer.attr('data-element')) | |||
window.mountRepositoryTable(tableContainer.attr('data-element')); | |||
return |
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.
Missing semicolon semi
@@ -210,6 +210,9 @@ var MyModuleRepositories = (function() { | |||
} | |||
|
|||
function renderSimpleTable(tableContainer) { | |||
console.log(tableContainer.attr('data-element')) |
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.
Missing semicolon semi
Unexpected console statement no-console
user: current_user, | ||
column: stock_cell.repository_column, | ||
repository: repository, | ||
options: {reminders_enabled: reminders_enabled} |
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.
[Correctable] Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
[Correctable] Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
if has_stock_management | ||
stock_cell = object.repository_cells.find { |cell| cell.value_type == 'RepositoryStockValue' } | ||
stock_column = repository.repository_columns.find_by(data_type: 'RepositoryStockValue') | ||
col_key = 'col_' + stock_column.id.to_s |
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.
[Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation.
user: current_user, | ||
column: cell.repository_column, | ||
repository: repository, | ||
options: {reminders_enabled: reminders_enabled} |
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.
[Correctable] Layout/SpaceInsideHashLiteralBraces: Space inside { missing.
[Correctable] Layout/SpaceInsideHashLiteralBraces: Space inside } missing.
@@ -0,0 +1,109 @@ | |||
# frozen_string_literal: true | |||
|
|||
class Lists::RepositoryRowSerializer < ActiveModel::Serializer |
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.
[Correctable] Style/ClassAndModuleChildren: Use nested module/class definitions instead of compact style.
# .group('repository_sort_cells.repository_row_id') | ||
# else | ||
# cells | ||
# .select("repository_sort_cells.repository_row_id, #{sorting_data_type::SORTABLE_COLUMN_NAME} AS value") |
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.
Layout/LineLength: Line is too long. [125/120]
What was done
PoC new inventory table