PoC new inventory table - #7422
Conversation
| }); | ||
|
|
||
| FULL_VIEW_MODAL.on('hidden.bs.modal', function() { | ||
| return |
| 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.
Expected space or tab after '//' in comment spaced-comment
| ); | ||
| updateFullViewRowsCount(tableContainer.attr('data-assigned-items-count')); | ||
| window.mountRepositoryTable(); | ||
| return |
| function renderSimpleTable(tableContainer) { | ||
| console.log(tableContainer.attr('data-element')) | ||
| window.mountRepositoryTable(tableContainer.attr('data-element')); | ||
| return |
| } | ||
|
|
||
| function renderSimpleTable(tableContainer) { | ||
| console.log(tableContainer.attr('data-element')) |
There was a problem hiding this comment.
Missing semicolon semi
Unexpected console statement no-console
|
|
||
| render rows_view | ||
| repository_rows = Lists::RepositoryRowsService.new(@repository, params, current_user, @my_module).call | ||
| render json: repository_rows, each_serializer: Lists::RepositoryRowSerializer, user: current_user, my_module: @my_module, |
There was a problem hiding this comment.
Layout/LineLength: Line is too long. [125/120]
| user: current_user, | ||
| column: stock_cell.repository_column, | ||
| repository: repository, | ||
| options: {reminders_enabled: reminders_enabled} |
There was a problem hiding this comment.
[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.
[Correctable] Style/StringConcatenation: Prefer string interpolation to string concatenation.
| @@ -0,0 +1,109 @@ | |||
| # frozen_string_literal: true | |||
|
|
|||
| class Lists::RepositoryRowSerializer < ActiveModel::Serializer | |||
There was a problem hiding this comment.
[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.
Layout/LineLength: Line is too long. [125/120]
What was done
PoC new inventory table