Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating a new transformation from an existing transformation gives error #35

Open
inl-ct opened this issue Feb 18, 2022 · 7 comments
Open
Assignees

Comments

@inl-ct
Copy link
Collaborator

inl-ct commented Feb 18, 2022

I have created a transformation for the ISLEX file. Now I want to create a new transformation based on the existing transformation, but I can't do this and keep getting an error message.
I use the 'new transformation' button at the bottom of the transformation screen.

@andrazrepar
Copy link
Collaborator

@inl-ct, is this file in the shared account?

@andrazrepar
Copy link
Collaborator

@LukeItUp Can you check this? It seems to happen with every dictionary, not just ISLEX?

@LukeItUp
Copy link
Collaborator

I noticed that the first call to api, which creates new transformation has empty field for headword, which might break the process.

POST /api/transform/new
BODY: {"configurationId": XFID, "entry_spec":"entry" ,"hw":"", "xfname":"copy-xf", "dsuuid":"a", "dsid":DSID }

@andrazrepar
Copy link
Collaborator

what do we need to solve this? another call to the database to get the headword?

@andrazrepar
Copy link
Collaborator

Hi, I did some digging into this.
The dictionary where this error appears is here: https://app.elexifier.elex.is/dictionaries/xml/703/transformations/605

This is what I am doing:
image

It seems to work with other dictionaries, like this one in the staging deployment: https://staging.elexifier.elex.is/dictionaries/xml/90/transformations/65

However, in both cases the "hw" parameter is empty:
{"configurationId":605,"entry_spec":"LexicalEntry","hw":"","xfname":"test_andraz","dsuuid":"a","dsid":703}

@gradisarjoze
Copy link
Collaborator

What needs to be done here?

@andrazrepar
Copy link
Collaborator

@LukeItUp can you have a look? I tested some more with the dictionary above. It seems to me that the error occurs if the headword parameter is path Lemma/feat as in AMIIS-ISLEX-v1. Whereas it works fine if it is just a simple element Lemma as in test-andraz.

You can try creating the a new transformation from these two configurations to see the error.

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

No branches or pull requests

4 participants