Resolve "NoMethodError: undefined method `map' for "15":String"
What does this MR do and why?
Fixes issues related to the new notebook rendering:
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2990630/
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2997916/
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2992203/
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2995478/
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2998443/
- https://sentry.gitlab.net/gitlab/gitlabcom/issues/2998410/
The test cases were changed to use a notebook that replicates the errors.
How to set up and validate locally
- Enable the feature flag:
- Open the rails consoles (
rails c
) Feature.enable(:jupyter_clean_diffs)
- Create a mirror of https://gitlab.com/gitlab-org/incubation-engineering/mlops/ipynb-test-projects/diff-sample into your GDK instance
- Open the commit
542d42a0196e2e94a0d5793acdee5ba997ab12bf
(http://gdk.test:3000/<path-to-mirror>/-/commit/542d42a0196e2e94a0d5793acdee5ba997ab12bf
)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #345963 (closed)
Edited by Eduardo Bonet