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

PoC new inventory table #7422

Open
wants to merge 2 commits into
base: features/inventory-table-revamp
Choose a base branch
from

Conversation

aignatov-bio
Copy link
Contributor

What was done

PoC new inventory table

@@ -591,6 +603,7 @@ var MyModuleRepositories = (function() {
});

FULL_VIEW_MODAL.on('hidden.bs.modal', function() {
return
Copy link

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);
Copy link

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
Copy link

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
Copy link

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'))
Copy link

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}
Copy link

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
Copy link

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}
Copy link

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
Copy link

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")
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant