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

#3345 fixing the initial component re-rendering #3376

Merged

Conversation

baloola
Copy link
Contributor

@baloola baloola commented Nov 29, 2018

Description

this PR provides the following:

  • fixes pre-mature expansion of the timeline (when loading a pre-saved map ). by triggering the re-rendering using the items range (when the range props is not yet loaded the the component)
  • removal of an unnecessary selector in timeline.jsx file
  • moving timelinecomponent.jsx file to the components directory. and removeing an extra copy of inlineDateTime.jsx

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

What is the current behavior? (You can also link to an open issue here)

see #3345
What is the new behavior?
see the description

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@coveralls
Copy link

coveralls commented Nov 29, 2018

Coverage Status

Coverage increased (+0.06%) to 80.633% when pulling a149818 on baloola:timeline_collapse into 0b16bc2 on geosolutions-it:c127_geonode_integration.

Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

Please, add Add only comment that explains the code you added

@@ -142,7 +141,16 @@ class Timeline extends React.Component {
this.$el.setGroups(groupsDataset);
}

this.$el.setItems(items);
if ( items && items.length > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Explain in a comment the reason of this

@offtherailz offtherailz merged commit 4f293e0 into geosolutions-it:c127_geonode_integration Nov 30, 2018
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.

3 participants