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

Fix bug with the selectRows cache not being cleared when labeling concepts in HF. #671

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

nsthorat
Copy link
Contributor

This only happens in HF because we have a production-deployment that changes the names of functions!

Throwback to closure compilation issues ;)

Copy link
Collaborator

@dsmilkov dsmilkov left a comment

Choose a reason for hiding this comment

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

nice find!

total_num_rows: res.total_num_rows
};
},
[DATASETS_TAG, 'selectRows', namespace, datasetName]
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we don't need to specify namespace and datasetnmae in tags, since createAPIQUery will add all args at the end ? I guess it would make a difference if we ever do invalidateQuery('selectrows', namespace, datasetName)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I did it this way to mirror what we do for infiniteSelectRows (and in general we should probably try to invalidate exactly what needs to be invalidate, generally we just invalidate all datasets).

@nsthorat nsthorat merged commit b1f011f into main Sep 14, 2023
2 checks passed
@nsthorat nsthorat deleted the nik-hf-concept-labeler branch September 14, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants