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

MNT Remove TODO comments #1413

Merged

Conversation

sabina-talipova
Copy link
Contributor

@@ -283,8 +283,6 @@ class AssetAdmin extends Component {
this.handleOpenFile(response.record.id);
}

// TODO Update GraphQL store with new model,
// see https://github.com/silverstripe/silverstripe-graphql/issues/14
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -477,9 +475,6 @@ class AssetAdmin extends Component {
*/
handleUnpublish(fileIds) {
return this.doUnpublish(fileIds).then((response) => {
// TODO Update GraphQL store with new model or update apollo and use new API
// see https://github.com/silverstripe/silverstripe-graphql/issues/14
// see https://dev-blog.apollodata.com/apollo-clients-new-imperative-store-api-6cb69318a1e3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -558,7 +552,6 @@ class AssetAdmin extends Component {
}

handleMoveFilesSuccess(folderId, fileIds) {
// TODO Refactor "queued files" into separate visual area and remove coupling here
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -799,7 +790,6 @@ function mapStateToProps(state, ownProps) {
const { formSchema } = state.assetAdmin.modal;
return {
securityId: state.config.SecurityID,
// TODO Refactor "queued files" into separate visual area and remove coupling here
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -812,7 +802,6 @@ function mapDispatchToProps(dispatch) {
gallery: bindActionCreators(galleryActions, dispatch),
toasts: bindActionCreators(toastsActions, dispatch),
displaySearch: bindActionCreators(displaySearchActions, dispatch),
// TODO Refactor "queued files" into separate visual area and remove coupling here
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -25,7 +25,6 @@ class HistoryItem extends Component {
}

return (
// @todo wrap the contents in an `<a>` tag
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -47,7 +45,7 @@ class HistoryList extends Component {
}

componentDidUpdate(prevProps) {
// TODO race conditions happening, this should have history state shifted to redux
Copy link
Contributor Author

Choose a reason for hiding this comment

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


// Sometimes AssetAdmin.js handleSubmitEditor() can't find the file
// @todo Ensure that we always return a file for any valid ID

Copy link
Contributor Author

Choose a reason for hiding this comment

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

// todo:
// Refactor this once Apollo GraphQL adds support
// for invalidating specific queries in the cache.
// Context: https://github.com/silverstripe/silverstripe-asset-admin/issues/809
Copy link
Contributor Author

Choose a reason for hiding this comment

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

client/src/containers/HistoryList/HistoryList.js Outdated Show resolved Hide resolved
code/Extensions/RemoteFileModalExtension.php Outdated Show resolved Hide resolved
tests/behat/src/FixtureContext.php Outdated Show resolved Hide resolved
tests/behat/src/FixtureContext.php Outdated Show resolved Hide resolved
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 634beab into silverstripe:2.1 Oct 29, 2023
12 checks passed
@GuySartorelli GuySartorelli deleted the pulls/2.1/remove-todo branch October 29, 2023 23:27
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.

2 participants