Git Product home page Git Product logo

jobeet's People

Contributors

gregurco avatar khrapeichuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jobeet's Issues

Day 11 / Security.yml / Security: Providers: in_memory:

When following the tutorial Symfony version is 4.2.12 and in day 11 when setting up a user in memory it should be:
providers:
users_in_memory:
memory:
users:
admin:
password: someStrongPassword
roles: 'ROLE_ADMIN'

Instead of:
providers:
in_memory:
memory:
users:
admin:
password: someStrongPassword
roles: 'ROLE_ADMIN'

Branch tests

is it meant for Jobeet Day 16: The Functional Tests ?

Day ???: Inactive job crashes homepage

Steps to reproduce:

  1. Update any job by setting active to false
  2. Go to the homepage (it will crash)
Twig_Error_Runtime:
Impossible to access an attribute ("id") on a null variable.

  at templates/job/_job_history.html.twig:6

composer install failure

composer install complains:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 111 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.3.0): Loading from cache
  - Installing symfony/flex (v1.0.80): Downloading (100%)         
Plugin installation failed, rolling back
  - Removing symfony/flex (v1.0.80)

In ParallelDownloader.php line 255:
                                                                                                                                                                                                          
  Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUrl, $fileUrl, $context) should be compatible with Composer\Util\RemoteFilesystem::getRemoteContents($originUrl, $fileUrl, $c  
  ontext, ?array &$responseHeaders = NULL)                                                                                                                                                                
                                                                                                                                                                                                          

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

Something weird is happening :-/

Day 8 : persisting a new object

Hi!

It's me again!

This time, the form is displayed, except when you want to persist a new job offer.
The error says

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'token' cannot be null

I have checked the Job entity (token), same for token event listener, controller.

Day 8 : "choices" is not an option in job/create form rendering

Hi! I moved forward on the tutorial and I am currently trying to render the form JobType.

The thing is... when I'm trying to see the result on job/create, it shows an exception at this line $form = $this->createForm(JobType::class, $job);

So, I have looked in the form and controller, seeing if I didn't miss any use or namespaces and and compared with your code and... it's not working.

The error says that

"choices" is not an option

However, when I'm going to the Symfony documentation, it is an option. I tried another way with a simple array after 'choices', but it didn't work.

Thanks in advance!

JobUploadListener::fileToString not needed

Hey, @hrapeichuk @gregurco I was covering JobUploadListener with unit tests and notices that the call to JobUploadListener::fileToString does not really seem necessary here since JobUploadListener::uploadFile will convert the file to string anyway.

private function uploadFile($entity)
{
    // upload only works for Job entities
    if (!$entity instanceof Job) {
        return;
    }
    $logoFile = $entity->getLogo();
    // only upload new files
    if ($logoFile instanceof UploadedFile) {
        $fileName = $this->uploader->upload($logoFile);
        $entity->setLogo($fileName);
    }
}

Let me know what you think, and I can adjust it with the test it self.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.