Repository navigation
Add optional data dictionaries and refresh Connect pin previews - #364
Open
mconflitti-pbc wants to merge 4 commits into
Open
mconflitti-pbc wants to merge 4 commits into
mconflitti-pbc wants to merge 4 commits into
Conversation
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins can attach a portable data dictionary to a pin and include a browsable dictionary in its Posit Connect preview. The publisher runs the optional
data-dictCLI before uploading the bundle; Connect serves the resulting HTML alongside the existing data and metadata.data_dict=Trueto draft from a DataFrame inpin_write()or Parquet files inpin_upload(). Supply an authored YAML file path, or YAML text inmetadata["data_dict"], to attach an existing dictionary. Stored dictionaries omit table source paths.pins[data-dict]extra, with an executable on PATH as a fallback. Handle pip wheels with a missing execute bit and require supported CLI version0.0.3. Ordinary pins do not require the CLI; attaching authored YAML to a folder board works without it.force_identical_write=Trueand explain skipped dictionary-only edits when the data hash is unchanged. Reject reserved preview filenames, report file/CLI errors throughPinsError, and clean up failed renders.Validation: 47 dictionary/preview tests passed with the CLI required; 42 existing folder-board tests passed (2 unrelated skips). Ruff lint and format checks passed. A clean macOS pip install reproduced the wheel permission issue and the CLI fix succeeded.
Redeployed ordinary and combined Parquet previews from both local branches to Connect. Downloaded the active bundles, verified they match the builds, and read all four pins back in both languages. Browser checks confirmed light theme, direct metadata display, interactive column profiles, and blocked executable dictionary links. Python CI exercises the optional extra on Linux, macOS, and Windows; R CI exports the installed CLI path into R CMD check. Full CI runs on this PR; CRAN readiness has not been established.