Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Forum Replies Created

Viewing 15 replies - 16 through 30 (of 99 total)
  • Author
    Replies
  • in reply to: Crowdin – integrate translations from another project #35932

    jakabadambalazs
    Participant

    Hi @ishakuta,

    I have a related question – once I have all in place and working – one day I’d like to be able to execute the oro:install command with some flag and install the entire application in a specific language – or better install it in english as it is but also download and activate a specific language right away.

    This is not possible at the moment, am I correct?
    And there is no console command either to do this?

    Do you think this would be useful to make a console command to do this (maybe a “oro:translation:install”) – maybe i could make a PR for this

    …have you got any plans in the near future to implement per-user language settings – that is: each user can use the application in his/her preferred language?

    thanks
    a\


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: global updates #35939

    jakabadambalazs
    Participant

    Thanks, yes that is exactly what I’d like to do – I’ll give it a go, thanks!


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: global updates #35937

    jakabadambalazs
    Participant

    PS: it should be quite similar to how “merge” action works


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Crowdin – integrate translations from another project #35931

    jakabadambalazs
    Participant

    ok, thanks! I’ll give it a go!


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Crowdin – integrate translations from another project #35929

    jakabadambalazs
    Participant

    Hi @ishakuta,

    Thanks a lot! It seems fun!

    Yes, I’have already looked into the DI config file and I noticed that you are not downloading the translations directly from Crowdin.

    Is this because of the repackaging thing (I immagine you package together OroPlatform and OroCrm) or is it because this way the project API key is not disclosed?

    As far as I understand even for downloading the translations one needs to provide the API key. This would mean to package the API key with the project itself – which obviously does not seem to be a great idea.

    is this correct?

    So, maybe the proxy thing is the only way to go about this – what do you think?
    a\


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: datagrid – filters – default value #33810

    jakabadambalazs
    Participant

    Thanks, I got it now!


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: open dialog from datagrid #35925

    jakabadambalazs
    Participant

    Update:

    actually the code:

    does not work because of the “space” after the “datagrid:doRefresh:”.
    This does work(note: NO SPACE) so I am happy:

    So the question remains: How do I set the title of the dialog?

    a\


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: multiselect – how to format selected value #35923

    jakabadambalazs
    Participant

    Please ignore me! I have just found “oro_user_multiselect” form type ;)


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33761

    jakabadambalazs
    Participant

    Extended entities are inclided with intermediate parent class (ExtendUser for User entity). In unit tests this entity uses empty parent class, but in functional this class has an alias that adds additional properties ($avatar in our case)…

    Is it because in functional tests we initialize the kernel which will spin up all the bundles (like the EntityExtendBundle) so that we have extended properties (like $avatar)? and this does not happen when we do unit tests?

    So that’s why if I execute functional tests before unit tests all works but if I do it the other way around functional tests will fail (because the entities are already “cached” without extended properties and methods).


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33760

    jakabadambalazs
    Participant

    ok i’ll try do do that.

    In the meanwhile I have found something interesting:

    If I execute both the unit and the functional tests together like this:

    first unit tests then functional tests – Functional tests will fail

    If I invert the order like this:

    both unit and functional tests will pass


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33758

    jakabadambalazs
    Participant

    But I am using the $user (either mock od real entity) object in my unit test just as you do in https://github.com/orocrm/crm/blob/master/src/OroCRM/Bundle/AccountBundle/Tests/Unit/Entity/AccountTest.php#L76

    This is not where the test fails – in fact the following unit test passes OK:

    but all functional tests will fail (with 401) afterwards complaining about $avatar property

    if I comment out the above unit test the functional tests will pass

    What is not clear to me is how/why this unit test is affecting the functional tests


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33756

    jakabadambalazs
    Participant

    Actually, as soon as i put in any of my unit tests even this:

    where User is Oro\Bundle\UserBundle\Entity\User

    the functional tests fail


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33755

    jakabadambalazs
    Participant

    Dear @yshyshkin,

    I have identified what makes the functional tests fail if executed togeter with the unit tests!

    It is:

    If I comment them out both unit and functional test work side by side.
    If I use either of them (or probably some other entity connected to the authentication) I go back to 401 stuff.

    IMHO, these test sutes should be executed in differenct testsuites because they have different responsibilities.

    I agree, but if I want to get overall coverage I need to do them together (hmmm… is this true?)

    Anyways, why should the mock objects interfere with the authentication process?


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Create OneToOne relationship with migrations #33707

    jakabadambalazs
    Participant

    hi @hugeval, thanks but that is not what I am looking for(probably I wasn’t clear enough in my question)
    What I am trying to do is to create a migration extension for my bundle so that other bundles can use it in their migration classes and add the association dynamically – much like you use the noteExtension.

    This means that my migration extension class (implements ExtendExtensionAwareInterface) needs to use the injected Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension class to add these relationships.

    On ExtendExtension the methods for doing this are: addOneToManyRelation, addManyToOneRelation and addManyToManyRelation, but i am missing addOneToOneRelation.

    ref.: https://github.com/orocrm/platform/tree/master/src/Oro/Bundle/EntityExtendBundle#add-relation


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

    in reply to: Functional Tests 401 #33753

    jakabadambalazs
    Participant

    Ok, I am just so happy that finally I can do functional tests that I don’t care I’ll make 2 separate tests then!

    Looking at optimistically, it was a good chance to review my code and check on some oro internals.

    Thanks again for your help!

    one more question(unrelated to this problem): What is the reason why you run your unit tests on Travis CI but not the functional tests? Is it because it would be too time consuming to deploy, configure, install a fully working OroPlatform?


    oro/platform(1.6.2) + oro/doctrine-extensions(1.0.7) + symfony/symfony(v2.3.27)

Viewing 15 replies - 16 through 30 (of 99 total)
Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No