Skip to content

No more calling PHP code from LfMerge#175

Merged
rmunn merged 11 commits into
fieldworks8-masterfrom
feature/no-more-runclass-usage-fw8
Dec 8, 2021
Merged

No more calling PHP code from LfMerge#175
rmunn merged 11 commits into
fieldworks8-masterfrom
feature/no-more-runclass-usage-fw8

Conversation

@rmunn
Copy link
Copy Markdown
Collaborator

@rmunn rmunn commented Dec 8, 2021

This PR finally implements the updateCustomFieldViews logic in LfMerge, as part of the SetCustomFieldConfig method in MongoConnection (which is where the logic belongs anyway). This will allow us to move the lfmerge package into its own container in Language Forge, instead of having it so tightly coupled to the PHP container.

This is PR #173 but against fieldworks8-master rather than master.


This change is Reviewable

rmunn added 7 commits December 8, 2021 13:23
This is the first step towards being able to get rid of the RunClass
code and not have our C# code call our PHP code.
Now that the MongoConnection knows how to update role views and user
views, this is no longer needed at all.
Did a bit of debugging and found that in addition to MultiString, we can
have a field type of String coming from FieldWorks for a custom field of
the most common type, which should convert to "multistring" in LF.
Copy link
Copy Markdown
Contributor

@megahirt megahirt left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 15 of 15 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained (waiting on @rmunn)

rmunn added 4 commits December 8, 2021 15:14
The logic from this method has moved into MongoConnection
This wasn't needed in the master branch version of this change, where it
uses the modern .NET build system that doesn't need a list of every
file. But here in the fieldworks8-master branch, the .csproj file
includes a list of every file in the project, so when we delete a file
we also need to remove it from the .csproj list as well.
Just like with the deleted files, this wasn't necessary in the master
branch but is necessary in the fieldworks8-master branch.
@rmunn rmunn merged commit ef9d9c0 into fieldworks8-master Dec 8, 2021
@rmunn rmunn deleted the feature/no-more-runclass-usage-fw8 branch December 8, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants