:u7533: Pretty printer for maps/structs collections (Elixir)
jaceklaskowski/librarian-clojure 22
Book manager in Clojure
Easy to setup in-memory LDAP server for tests.
WIP. Yet another HTTP client wrapper lib for Elixir. This time it's katipo.
zoldar/ldap-test-server-py4j 2
An LDAP test server for use with py4j gateway. Part of a library for easy testing of Python code speaking to LDAP.
zoldar/om-with-tests-template 2
A Leiningen template for creating Om applications with a continuous testing setup.
Playing around with ssh api in Elixir. Nothing interesting for now.
The GraphQL toolkit for Elixir
sketch-hq/phoenix_pubsub_redis 0
The Redis PubSub adapter for the Phoenix framework
The GraphQL toolkit for Elixir
push eventsketch-hq/sketch-assistants
commit sha 9ee7d596262656ac2ddb6a12ae0f326378902b8b
Update dependencies (#191) * Update dependencies * Update lockfile * Add changeset
commit sha 200ffba91e4ff7c0dbcebe22238bbfa665aaa096
Version Packages
push time in a day
push eventsketch-hq/sketch-assistants
commit sha 9ee7d596262656ac2ddb6a12ae0f326378902b8b
Update dependencies (#191) * Update dependencies * Update lockfile * Add changeset
push time in a day
delete branch sketch-hq/sketch-assistants
delete branch : chore/update-dependencies
delete time in a day
PR merged sketch-hq/sketch-assistants
pr closed time in a day
pull request commentsketch-hq/sketch-assistants
🦋 Changeset detected
Latest commit: 728224eef0fa3e63e89c98ab2279ac14310a107b
The changes in this PR will be included in the next version bump.
<details><summary>This PR includes changesets to release 6 packages</summary>
| Name | Type |
|---|---|
| @sketch-hq/sketch-core-assistant | Patch |
| @sketch-hq/sketch-assistant-cli | Patch |
| @sketch-hq/sketch-assistant-utils | Patch |
| @sketch-hq/sketch-naming-conventions-assistant | Patch |
| @sketch-hq/sketch-reuse-suggestions-assistant | Patch |
| @sketch-hq/sketch-tidy-assistant | Patch |
</details>
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
comment created time in a day
PR opened sketch-hq/sketch-assistants
pr created time in a day
create barnchsketch-hq/sketch-assistants
branch : chore/update-dependencies
created branch time in a day
push eventelixir-ecto/ecto
commit sha 651f55425bdfe1876effa0b60c276a6eb20c0221
Improve error message for giving replace to put_assoc
push time in a day
PR opened sketch-hq/sketch-assistants
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@sketch-hq/[email protected]
Minor Changes
- d034e3b: Change rule config merge behaviour. Instead of overwriting the entire rule config, options are overwritten individually.
@sketch-hq/[email protected]
Patch Changes
- Updated dependencies [d034e3b]
- @sketch-hq/[email protected]
pr created time in a day
create barnchsketch-hq/sketch-assistants
branch : changeset-release/main
created branch time in a day
push eventsketch-hq/sketch-assistants
commit sha d034e3b530fdcc5445706d472c9c6b03db1570fb
Change config merge behaviour (#189) * Merge rule configurations from right to left Similar to rules themselves, the rule configurations are now merged from right to left so that options can be partially owerwritten. Resolves #188 * Add changeset * Use strict typing
push time in a day
delete branch sketch-hq/sketch-assistants
delete branch : feature/188-change-config-merge-behaviour
delete time in a day
PR merged sketch-hq/sketch-assistants
Resolves #188
pr closed time in a day
issue closedsketch-hq/sketch-assistants
Change config merge behaviour for extended Assistants
Currently, extending an Assistant will merge any new Assistant configuration with the configuration provided by the base Assistant. However, any existing rule configs are replaced, not merged, by newly provided rule configs.
Given an original configuration such as:
{
rules: {
'rule-1': {
active: true,
},
'rule-2': {
active: true,
foo: 1,
},
'rule-3': {
active: true,
bar: "hello",
baz: "world",
},
}
}
… extending the Assistant with the following config:
{
rules: {
'rule-1': {
active: false,
},
'rule-3': {
active: true,
baz: "everyone",
},
}
… will result in:
{
rules: {
'rule-2': {
active: true,
foo: 1,
},
'rule-3': {
active: true,
baz: "world",
},
}
}
This configuration is invalid because rule-3 does not include all required properties with bar missing. One option is to always provide a full configuration for each rule but this seems inconsistent given that the Assistant configuration overall can be partial.
Instead of shallow merging rules, it would be better to deep merge them as it makes it easier to tweak existing Assistants.
closed time in a day
christianklotzpush eventsketch-hq/sketch-assistants
commit sha 6b8c187dac123911bb416f0f60c316d2af8ae9d3
Use strict typing
push time in a day
Pull request review commentsketch-hq/sketch-assistants
const assign = (...sources: AssistantDefinition[]): AssistantDefinition => { ...(typeof acc.config.defaultSeverity === 'undefined' ? {} : { defaultSeverity: acc.config.defaultSeverity }),- rules: {- ...curr.config.rules,- ...acc.config.rules,- },+ rules: Object.entries(curr.config.rules).reduceRight(+ (a: { [key: string]: any }, [name, opts]) => {
Is it feasible to avoid any here? Could maybe use Record?
Record<string, RuleConfigOption>
or similar?
comment created time in 2 days
issue commentsketch-hq/sketch-assistants
Change config merge behaviour for extended Assistants
Right, indeed … I omitted the one with the active: false. Your version is the desired one.
comment created time in 2 days
pull request commentsketch-hq/sketch-assistants
🦋 Changeset detected
Latest commit: 30f7bfc20d0e3c5858ff99f633bae5eb09c1c334
The changes in this PR will be included in the next version bump.
<details><summary>This PR includes changesets to release 2 packages</summary>
| Name | Type |
|---|---|
| @sketch-hq/sketch-assistant-utils | Minor |
| @sketch-hq/sketch-assistant-cli | Minor |
</details>
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
comment created time in 2 days
PR opened sketch-hq/sketch-assistants
Resolves #188
pr created time in 2 days
push eventsketch-hq/sketch-assistants
commit sha 30f7bfc20d0e3c5858ff99f633bae5eb09c1c334
Add changeset
push time in 2 days
create barnchsketch-hq/sketch-assistants
branch : feature/188-change-config-merge-behaviour
created branch time in 2 days
issue commentsketch-hq/sketch-assistants
Change config merge behaviour for extended Assistants
I think your final code block above should be
{
rules: {
'rule-1': {
active: false,
},
'rule-2': {
active: true,
foo: 1,
},
'rule-3': {
active: true,
baz: "everyone",
},
}
}
comment created time in 2 days
issue openedsketch-hq/sketch-assistants
Change config merge behaviour for extended Assistants
Currently, extending an Assistant will merge any new Assistant configuration with the configuration provided by the base Assistant. However, any existing rule configs are replaced, not merged, by newly provided rule configs.
Given an original configuration such as:
{
rules: {
'rule-1': {
active: true,
},
'rule-2': {
active: true,
foo: 1,
},
'rule-3': {
active: true,
bar: "hello",
baz: "world",
},
}
}
… extending the Assistant with the following config:
{
rules: {
'rule-1': {
active: false,
},
'rule-3': {
active: true,
baz: "everyone",
},
}
… will result in:
{
rules: {
'rule-2': {
active: true,
foo: 1,
},
'rule-3': {
active: true,
baz: "world",
},
}
}
This configuration is invalid because rule-3 does not include all required properties with bar missing. One option is to always provide a full configuration for each rule but this seems inconsistent given that the Assistant configuration overall can be partial.
Instead of shallow merging rules, it would be better to deep merge them as it makes it easier to tweak existing Assistants.
created time in 2 days
pull request commentelixir-ecto/ecto
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
comment created time in 3 days
push eventelixir-ecto/ecto
commit sha 790616281a787a9f5715476c62d811b8b64beedd
Add Ecto.Enum.mappings/2 and Ecto.Enum.dump_values/2 (#3676) * Add Ecto.Enum.mappings/2 The `mappings/2` function returns the enum values and their respective mappings in a keyword list. * Add Ecto.Enum.dump_values/2 This function return dump values for a given schema and field.
push time in 3 days
PR merged elixir-ecto/ecto
The mappings/2 function returns the enum values and their respective
mappings in a keyword list.
pr closed time in 3 days
pull request commentelixir-ecto/ecto
Clearer error message when a map is expected for an embedded struct.
Ah right, thanks! I tried it but I'm still getting an exception from Ecto.Repo.Queryable.load!/5 first. I'll continue checking...
comment created time in 3 days
pull request commentelixir-ecto/ecto
Sounds good to me. While dump_values doesn't seem like the most useful function, I think having it and values combined gives us enough consistency without sacrificing ergonomics. Will address that
comment created time in 4 days
pull request commentelixir-ecto/ecto
Another option is to have values, dump_values, and mappings. So we extend the existing API with two types of values for clarity?
comment created time in 4 days
pull request commentelixir-ecto/ecto
Added a commit with the deprecation.
I'm not really a fan of it it because I find Ecto.Enum.values/2 to be really ergonomic.
comment created time in 4 days