Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Consolidate path traversal. #102

Closed
blackwinter opened this issue Dec 23, 2021 · 3 comments · Fixed by #170
Closed

Consolidate path traversal. #102

blackwinter opened this issue Dec 23, 2021 · 3 comments · Fixed by #170
Assignees

Comments

@blackwinter
Copy link
Member

Also, transformFields() and find()/findNested() are basically performing the same traversal operations. There may be room for consolidation.

Originally posted by @blackwinter in #97 (comment)

For now, I'm getting a bit uneasy about the divergence of object traversal between find()/insert() and transformFields(). I should probably work on that next.

Originally posted by @blackwinter in #98 (review)

Right, this is also where I'm currently at in #95, where certain things only work in a bind if we first do e.g. an upcase (which calls transformFields).

Originally posted by @fsteeg in #98 (comment)

@blackwinter blackwinter self-assigned this Dec 23, 2021
@blackwinter
Copy link
Member Author

In addition to keeping our internal code consistent, we should probably also adopt a model similar to Catmandu's with designated getters/setters/creators/etc.

Currently, we can't properly deal with wildcards when inserting/transforming values (see also #92 and #100). This needs to be fixed somehow, quite possibly by introducing an abstract path traversal model.

@fsteeg fsteeg self-assigned this Jan 31, 2022
fsteeg added a commit that referenced this issue Feb 1, 2022
fsteeg added a commit that referenced this issue Feb 1, 2022
fsteeg added a commit that referenced this issue Feb 1, 2022
fsteeg added a commit that referenced this issue Feb 3, 2022
@TobiasNx TobiasNx moved this to Working in Metafacture Feb 3, 2022
@blackwinter blackwinter removed their assignment Feb 3, 2022
@fsteeg
Copy link
Member

fsteeg commented Feb 4, 2022

Merging #133 would unblock work on #113 & #116 (which will touch the same code). Note (mostly to self): continue by making the second FixPath constructor private, work on Hash.appendValue / modifyFields (as mentioned in our meeting, I'll only be able to continue here at the end of next week).

@fsteeg fsteeg moved this from Working to Ready in Metafacture Feb 4, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 22, 2022
TobiasNx added a commit that referenced this issue Mar 24, 2022
#102

Behaviour seems to have changed #102 breaks and master ingores
if there is no object in the array and you use to `add_field` with
$last wildcard
TobiasNx added a commit that referenced this issue Mar 24, 2022
Add integration test for replace with last Wildcard (#102)
fsteeg added a commit that referenced this issue Mar 29, 2022
Mark tests covering faulty usage as TODOs
Repository owner moved this from Working to Done in Metafacture Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants