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

Refs #26346 - Move tasks table to react router #445

Merged

Conversation

MariaAga
Copy link
Member

@MariaAga MariaAga commented Jul 30, 2019

@theforeman-bot
Copy link
Member

@MariaAga, this pull request is currently not mergeable. Please rebase against the master branch and push again.

If you have a remote called 'upstream' that points to this repository, you can do this by running:

    $ git pull --rebase upstream master

This message was auto-generated by Foreman's prprocessor

@MariaAga MariaAga changed the title Move tasks table to react router Refs #26346 - Move tasks table to react router Jul 30, 2019
@theforeman-bot
Copy link
Member

@MariaAga, this pull request is currently not mergeable. Please rebase against the master branch and push again.

If you have a remote called 'upstream' that points to this repository, you can do this by running:

    $ git pull --rebase upstream master

This message was auto-generated by Foreman's prprocessor

app/views/foreman_tasks/layouts/react.html.erb Outdated Show resolved Hide resolved

const formatDate = date =>
date
? new Date(date).toLocaleString('en-GB', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hardcoded locale? Shouldn't it be retrieved from the environment or something?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didnt want there to be a confusion with the search text as the date for 'en-US' would be MM/DD/YYYY in the table, but it can't be searched in this format

@adamruzicka
Copy link
Contributor

Needs a rebase

@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch 8 times, most recently from ea0b5f3 to 0d29dd6 Compare August 19, 2019 12:25
@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch from 0d29dd6 to b7b9e24 Compare August 26, 2019 11:48
@waldenraines
Copy link

@adamruzicka I think this is ready for a review now.

@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch 2 times, most recently from 31978f4 to e968c68 Compare September 25, 2019 13:57
Copy link
Contributor

@sharvit sharvit left a comment

Choose a reason for hiding this comment

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

Thank you @MariaAga

webpack/ForemanTasks/Routes/ForemanTasksRoutes.js Outdated Show resolved Hide resolved
@sharvit
Copy link
Contributor

sharvit commented Sep 26, 2019

Needs a rebase

@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch from 6244663 to e39073f Compare October 3, 2019 08:49
@sharvit
Copy link
Contributor

sharvit commented Oct 3, 2019

Please notice the testing error

@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch from e39073f to f52451d Compare October 3, 2019 09:40
Copy link
Contributor

@sharvit sharvit left a comment

Choose a reason for hiding this comment

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

Great work @MariaAga LGTM and works as expected 👍

Copy link
Contributor

@sharvit sharvit left a comment

Choose a reason for hiding this comment

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

Thanks @MariaAga code wise it makes sense.
Waiting for @adamruzicka to run and test it because I could not atm.

@MariaAga
Copy link
Member Author

@adamruzicka looks like this PR(theforeman/foreman#6936) will be in soon and will change the React Router behavior in Foreman plugins, so I think we should wait for it

@adamruzicka
Copy link
Contributor

Agreed, I'll keep an eye out for it

@MariaAga MariaAga force-pushed the feat/tasks-table-search-react branch from 78a63cc to 859d2a4 Compare October 31, 2019 13:38
Copy link
Contributor

@sharvit sharvit left a comment

Choose a reason for hiding this comment

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

Thank you @MariaAga, looks good and working well.

Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

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

Works nicely

@adamruzicka adamruzicka merged commit 0cfa8ea into theforeman:master Oct 31, 2019
@adamruzicka
Copy link
Contributor

Thank you @MariaAga for the PR and @waldenraines, @LaViro and @sharvit for reviews!

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