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

feature/GH-130: Add action item life duration status #132

Merged

Conversation

nikolaiprivalov
Copy link
Contributor

No description provided.

@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from 52dcda3 to 0b66833 Compare October 18, 2019 12:35
@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from cd368c1 to 24b3249 Compare October 21, 2019 12:17
@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from 24b3249 to c477478 Compare October 22, 2019 09:35
@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from 35799a1 to 9868f77 Compare October 22, 2019 10:19
@nikolaiprivalov nikolaiprivalov changed the title feature/GH-130: Add action item life duration status WIP feature/GH-130: Add action item life duration status Oct 22, 2019
app/controllers/api/action_items_controller.rb Outdated Show resolved Hide resolved
app/controllers/api/action_items_controller.rb Outdated Show resolved Hide resolved
app/controllers/api/action_items_controller.rb Outdated Show resolved Hide resolved
app/controllers/api/action_items_controller.rb Outdated Show resolved Hide resolved
app/javascript/components/ActionItem/index.js Show resolved Hide resolved
@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from 8b24c24 to baf2006 Compare October 22, 2019 14:57
@nikolaiprivalov nikolaiprivalov force-pushed the feature/GH-130-Add-action-item-life-duration-status branch from baf2006 to c4b3bb7 Compare October 24, 2019 08:58
@nikolaiprivalov nikolaiprivalov requested a review from we138 October 24, 2019 09:20
@@ -25,18 +28,67 @@ class ActionItemFooter extends React.Component {
});
}

handleMoveClick = () => {
fetch(`/api/${window.location.pathname}/action_items/${this.props.id}/move`, {
Copy link

Choose a reason for hiding this comment

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

хорошая практика - выносить запросы к api в отдельный метод в отдельном файле в папке компонента
например requests.js или что-то подобное, а внутри него него должна быть функция move(), которую уже можно будет вызвать отсюда

Copy link
Contributor

Choose a reason for hiding this comment

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

хорошая практика - выносить запросы к api в отдельный метод в отдельном файле в папке компонента
например requests.js или что-то подобное, а внутри него него должна быть функция move(), которую уже можно будет вызвать отсюда

уже писал об этом, ребята решили сделать это отдельным PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

understood! спасибо за подробное разьяснение по расположению. там где-то 15 таких фетчей. я возьму следующим таском их все разобрать.

Copy link

Choose a reason for hiding this comment

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

огонь!

Co-Authored-By: Vitaliy Pecherin <pecherin.dev@gmail.com>
@nikolaiprivalov nikolaiprivalov merged commit 5f484a9 into master Oct 24, 2019
@nikolaiprivalov nikolaiprivalov deleted the feature/GH-130-Add-action-item-life-duration-status branch October 25, 2019 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants